You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ npm install -g aurelia-cli
$ au new
(choose default TypeScript App and yarn)
$ npm start
aurelia-sample@0.1.0 start
webpack server
[webpack-cli] TypeError: Cannot read properties of undefined (reading 'loader')
at module.exports (/Users/s-hirano/dev/tmp/aurelia-sample/webpack.config.js:202:47)
at loadConfigByPath (/Users/s-hirano/dev/tmp/aurelia-sample/node_modules/webpack-cli/lib/webpack-cli.js:1745:27)
at async WebpackCLI.loadConfig (/Users/s-hirano/dev/tmp/aurelia-sample/node_modules/webpack-cli/lib/webpack-cli.js:1830:30)
at async WebpackCLI.createCompiler (/Users/s-hirano/dev/tmp/aurelia-sample/node_modules/webpack-cli/lib/webpack-cli.js:2185:18)
at async Command. (/Users/s-hirano/dev/tmp/aurelia-sample/node_modules/@webpack-cli/serve/lib/index.js:98:30)
at async Promise.all (index 1)
at async Command. (/Users/s-hirano/dev/tmp/aurelia-sample/node_modules/webpack-cli/lib/webpack-cli.js:1672:7)
What is the expected behavior?
webpack.config.js has the following line at line 4.
I'm submitting a bug report
aurelia-cli 2.0.3 (latest)
Please tell us about your environment:
Operating System:
OSX 11.6.2
Node Version:
v17.4.0 (latest)
NPM Version:
8.3.1 (latest)
Language:
All
Loader/bundler:
Webpack 5
Current behavior:
$ npm install -g aurelia-cli
$ au new
(choose default TypeScript App and yarn)
$ npm start
aurelia-sample@0.1.0 start
webpack server
[webpack-cli] TypeError: Cannot read properties of undefined (reading 'loader')
at module.exports (/Users/s-hirano/dev/tmp/aurelia-sample/webpack.config.js:202:47)
at loadConfigByPath (/Users/s-hirano/dev/tmp/aurelia-sample/node_modules/webpack-cli/lib/webpack-cli.js:1745:27)
at async WebpackCLI.loadConfig (/Users/s-hirano/dev/tmp/aurelia-sample/node_modules/webpack-cli/lib/webpack-cli.js:1830:30)
at async WebpackCLI.createCompiler (/Users/s-hirano/dev/tmp/aurelia-sample/node_modules/webpack-cli/lib/webpack-cli.js:2185:18)
at async Command. (/Users/s-hirano/dev/tmp/aurelia-sample/node_modules/@webpack-cli/serve/lib/index.js:98:30)
at async Promise.all (index 1)
at async Command. (/Users/s-hirano/dev/tmp/aurelia-sample/node_modules/webpack-cli/lib/webpack-cli.js:1672:7)
webpack.config.js has the following line at line 4.
const MiniCssExtractPlugin = require('mini-css-extract-plugin').default;
Removing .default fixes.
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
The text was updated successfully, but these errors were encountered: