Cannot find module css/sass-loader
aight8 opened this issue · comments
Sebastian Fekete commented
When starting the server:
Error: Cannot find module '!!./../../../node_modules/css-loader/index.js!./../../../node_modules/sass-loader/index.js!./style.scss'
at Function.Module._resolveFilename (module.js:438:15)
at Function.Module._load (module.js:386:25)
at Module.require (module.js:466:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (server.js:775:19)
at __webpack_require__ (server.js:21:30)
at Object.<anonymous> (server.js:762:16)
at __webpack_require__ (server.js:21:30)
at Object.<anonymous> (server.js:459:2)
at __webpack_require__ (server.js:21:30)
[nodemon] app crashed - waiting for file changes before starting...
Sebastian Fekete commented
Okei the module is not found. I have component specific scss files in the same directory which I import at the top of the component class. This is not found properly.
Nikolay commented
Oh, seems that I'm having this error too in my project.
Will investigate.
Nikolay commented
Ok
Cannot find module '!!./../../node_modules/css-loader/index.js?importLoaders=2&sourceMap!./../../node_modules/autoprefixer-loader/index.js?browsers=last 2 version!./../../node_modules/sass-loader/index.js?outputStyle=expanded&sourceMap=true&sourceMapContents=true!./style.scss'
Apparently it thinks that !!.
is a valid npm module name so it just externalized it.
Nikolay commented
Now I'm getting TypeError: Cannot read property '1' of undefined
.
Will look.
Nikolay commented
False alarm, this seems to be fixed now.
Tomer Ofer commented
@halt-hammerzeit How you fixed it?