Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module @3.2.0 #225

Closed
xiaoyunchen opened this issue Mar 18, 2016 · 3 comments
Closed

Cannot find module @3.2.0 #225

xiaoyunchen opened this issue Mar 18, 2016 · 3 comments

Comments

@xiaoyunchen
Copy link

Here is my source code :
import "./titlebar.scss";

and the webpack-config:
loaders: [ { test: /\.js?$/, loader: 'babel', query: { presets: ['es2015'] } }, {test: /\.css$/, loader:'style-loader!css-loader' }, {test: /\.scss$/, loaders: ["style", "css", "sass"] }, //sass {test: /\.html$/, loader: "html" }, {test: /\.(png|jpg)$/, loader: 'url-loader?limit=8192&name=./img/[hash].[ext]'} ]

and the output file error like this :
// load the styles var content = __webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module \"!!./../../../node_modules/css-loader/index.js!./../../../node_modules/sass-loader/index.js!./titlebar.scss\""); e.code = 'MODULE_NOT_FOUND'; throw e; }()));

Any ideas or missed something important?

@mattxo
Copy link

mattxo commented May 25, 2016

I'm having what appears to be a similar issue. Do you manage to fix it? @xiaoyunchen

 Asset       Size  Chunks             Chunk Names
9:07 PM -    js/app.12ffa852f5a419a52c5d.js    1.55 MB       0  [emitted]  app
9:07 PM - js/vendor.12ffa852f5a419a52c5d.js     457 kB       1  [emitted]  vendor
9:07 PM - js/common.12ffa852f5a419a52c5d.js     890 kB       2  [emitted]  common
9:07 PM -                        index.html    1.33 kB          [emitted]  
9:07 PM -                   img\favicon.ico    5.43 kB          [emitted]  
9:07 PM -          img\shield-with-beta.png    21.3 kB          [emitted]  
9:07 PM -                 service-worker.js   43 bytes          [emitted]  
9:07 PM -                        stats.json  178 bytes          [emitted]  
9:07 PM -  [673] ./src/shims/shims_for_IE.js 6.74 kB {1} [built]
9:07 PM -        ... -> factory:157ms building:156ms
9:07 PM -     + 715 hidden modules
9:07 PM - ERROR in ./~/css-loader?sourceMap!./~/postcss-loader!./~/sass-loader!./~/raw-loader!./~/postcss-loader!./~/sass-loader!./src/[censored]/style.scss
9:07 PM - Module build failed: 
9:07 PM - @import "./../../../style/[censored].scss";
9:07 PM -              ^
9:07 PM -       Invalid CSS after "module.exports": expected "{", was '= ".difficulty-sele'
9:07 PM -       in c:\src\[censored]\style.scss (line 1, column 15)
9:07 PM -  @ ./src/[censored]/style.scss 4:14-341

@mattxo
Copy link

mattxo commented Jun 9, 2016

I did manage to resolve my issue... I was accidentally importing a Component in Angular2 from outside the root of the project.

@jhnns
Copy link
Member

jhnns commented Jun 26, 2016

Please use Stackoverflow for questions using the webpack tag. This way, a much larger user-base is able to benefit from the answer and there are more people how actually answer it. If this is a bug report, please provide a small example project.

@jhnns jhnns closed this as completed Jun 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants