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
Throws an error while using add command and trying to add performance property. Happening only with the current code from the repo, not with the version on the npm.
What is the current behaviour?
Error
./node_modules/webpack-cli/bin/cli.js add
✔ SUCCESS Found config webpack.config.js
? What property do you want to add to? performance
(node:8167) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'definitions' of undefined
at prompt.then.then (/home/wasd/webpack/webpack-cli/packages/generators/add-generator.js:134:68)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:8167) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8167) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
To Reproduce
Steps to reproduce the behaviour:
(Create a new directory & link the CLI repo)
./node_modules/webpack-cli/bin/cli.js init
./node_modules/webpack-cli/bin/cli.js add
Scroll down and select performance
Error
Expected behaviour
Congratulations! performance.assetFilter has been added!
Screenshots
Left = Current codebase Right = Modules installed from NPM
Please paste the results of webpack-cli info here, and mention other relevant information
System:
OS: Linux 4.18 Ubuntu 18.10 (Cosmic Cuttlefish)
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Describe the bug
Throws an error while using
add
command and trying to addperformance
property.Happening only with the current code from the repo, not with the version on the npm.
What is the current behaviour?
Error
To Reproduce
Steps to reproduce the behaviour:
(Create a new directory & link the CLI repo)
./node_modules/webpack-cli/bin/cli.js init
./node_modules/webpack-cli/bin/cli.js add
performance
Expected behaviour
Congratulations! performance.assetFilter has been added!
Screenshots
Left = Current codebase
Right = Modules installed from NPM
Please paste the results of
webpack-cli info
here, and mention other relevant informationSystem:
Binaries:
Browsers:
npmPackages:
npmGlobalPackages:
The text was updated successfully, but these errors were encountered: