catamphetamine / universal-webpack

Isomorphic Webpack: both on client and server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find module css/sass-loader

aight8 opened this issue · comments

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...

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.

Oh, seems that I'm having this error too in my project.
Will investigate.

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.

Now I'm getting TypeError: Cannot read property '1' of undefined.
Will look.

False alarm, this seems to be fixed now.

@halt-hammerzeit How you fixed it?

@tomerof It just disappeared.
Make sure you're on the latest version.