question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[6.0.4] importing files directly from scoped npm package (ModuleBuildError)

See original GitHub issue

My webpack config process right when use sass-loader 6.0.3, but when update to 6.0.4, throw this error:

ERROR in ./outline/style/_index.scss
Module build failed: ModuleBuildError: Module build failed:
@import "~@blueprintjs/core/src/common/resets";
^
      File to import not found or unreadable: ~@blueprintjs/core/src/common/resets.
Parent style sheet: /Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/projects/app/outline/style/_blueprint.scss
      in /Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/projects/app/outline/style/_blueprint.scss (line 7, column 1)
    at runLoaders (/Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/node_modules/webpack/lib/NormalModule.js:192:19)
    at /Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/node_modules/loader-runner/lib/LoaderRunner.js:364:11
    at /Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/node_modules/loader-runner/lib/LoaderRunner.js:230:18
    at context.callback (/Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at Object.asyncSassJobQueue.push [as callback] (/Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/node_modules/sass-loader/lib/loader.js:57:13)
    at Object.<anonymous> (/Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/node_modules/async/dist/async.js:2243:31)
    at Object.callback (/Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/node_modules/async/dist/async.js:906:16)
    at options.error (/Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/node_modules/node-sass/lib/index.js:294:32)
 @ ./outline/index.js 6:0-29


    ERROR in /Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/~/css-loader?{"sourceMap":true}!/Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/~/postcss-loader/lib?{"sourceMap":true}!/Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/~/sass-loader/lib/loader.js?{"sourceMap":true,"outputStyle":"nested"}!./outline/style/_index.scss
    Module build failed:
    @import "~@blueprintjs/core/src/common/resets";
    ^
          File to import not found or unreadable: ~@blueprintjs/core/src/common/resets.
    Parent style sheet: /Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/projects/app/outline/style/_blueprint.scss
          in /Users/wjx/MyFolder/Develop/MyWorkspace/blah-projects/projects/app/outline/style/_blueprint.scss (line 7, column 1)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
michael-ciniawskycommented, May 10, 2017

Sry that’s the responsibility of one of the core members, I will try to ping one in slack, tbh I thought it’s up already with a release tagged ¯_(ツ)_/¯

0reactions
michael-ciniawskycommented, May 10, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

scope - npm Docs
A scope follows the usual rules for package names (URL-safe characters, no leading dots or underscores). When used in package names, scopes are...
Read more >
Manage npm packages - Visual Studio (Windows)
Visual Studio helps you to manage packages using the Node.js package ... To add the package.json file, right-click the project in Solution ...
Read more >
npm packages in the Package Registry - GitLab Docs
You can set up the scope for your package in the .npmrc file and by using the ... npm ci : Install npm...
Read more >
Why do some npm packages start with @? [duplicate]
If a package's name begins with @, then it is a scoped package. The scope is everything in between the @ and the...
Read more >
Publishing NestJS Packages with npm - DEV Community ‍ ‍
One for the npm package, and one for a companion NestJS app that will ... and import the function; make sure the file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found