aurelia / loader-webpack

An implementation of Aurelia's loader interface to enable webpack.
MIT License
26 stars 10 forks source link

Module not found: Error: Can't resolve 'css' #27

Closed heruan closed 7 years ago

heruan commented 7 years ago

Suddenly I get this warning:

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'css' in '/Users/lovatog/Workspaces/aurelia/packages/best-app/src'
BREAKING CHANGE: It's no longer allowed to omit the '-loader' prefix when using loaders.
                 You need to specify 'css-loader' instead of 'css'.
 @ ./src ^\.\/.*$
 @ ./~/aurelia-loader-webpack/dist/commonjs/aurelia-loader-webpack.js
 @ ./~/aurelia-bootstrapper-webpack/dist/commonjs/aurelia-bootstrapper-webpack.js
 @ ./src/main/index.ts
 @ multi app

Webpack's guys told me aurelia-loader-webpack may be missing -loader somewhere, which became mandatory for loaders in the latest betas.

niieani commented 7 years ago

I reckon you're not using easy-webpack which fixed this in a patch release.

Please add this configuration property to the options passed into AureliaWebpackPlugin and it'll work properly.

niieani commented 7 years ago

Solved by https://github.com/aurelia/webpack-plugin/releases/tag/1.2.0.