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
/mutualofomaha.com/workbench/mutualofomaha/webpack-cli/lib/transformations/removeDeprecatedPlugins/removeDeprecatedPlugins.js:15
if (path.parent.value.elements.length === 1) {
^
TypeError: Cannot read property 'length' of undefined
at NodePath.findPluginsByName.forEach.path (/mutualofomaha.com/workbench/mutualofomaha/webpack-cli/lib/transformations/removeDeprecatedPlugins/removeDeprecatedPlugins.js:15:34)
at __paths.forEach (/mutualofomaha.com/workbench/mutualofomaha/webpack-cli/node_modules/jscodeshift/dist/Collection.js:76:36)
at Array.forEach (native)
at Collection.forEach (/mutualofomaha.com/workbench/mutualofomaha/webpack-cli/node_modules/jscodeshift/dist/Collection.js:75:18)
at module.exports (/mutualofomaha.com/workbench/mutualofomaha/webpack-cli/lib/transformations/removeDeprecatedPlugins/removeDeprecatedPlugins.js:12:4)
at transforms.forEach.f (/mutualofomaha.com/workbench/mutualofomaha/webpack-cli/lib/transformations/index.js:40:26)
at Array.forEach (native)
at transform (/mutualofomaha.com/workbench/mutualofomaha/webpack-cli/lib/transformations/index.js:40:13)
at module.exports (/mutualofomaha.com/workbench/mutualofomaha/webpack-cli/lib/migrate.js:9:23)
at Object.<anonymous> (/mutualofomaha.com/workbench/mutualofomaha/webpack-cli/bin/webpack.js:171:30)
The text was updated successfully, but these errors were encountered:
For now only plugins instantiated in an array can be removed since this is safe.
All other usages are considered not safe and thus won't be modified.
- Display a message about the current support
Closes#83
* fix: Guard new exepressions outside of arrays
For now only plugins instantiated in an array can be removed since this is safe.
All other usages are considered not safe and thus won't be modified.
- Display a message about the current support
Closes#83
* style: Better error messages
- Pass the source to the transform function
- This allows displaying code snippets in error messages
* fix: Use console.log to fix colors and use better error copy.
- Don't use `console.error` to fix colors.
- Use chalk instead to make output more prettier.
- Better error message with an example of the expected usage.
Do you want to request a feature or report a bug?
Bug v1=>v2
Command Ran
set NODE_ENV 'development' && node ../webpack-cli/bin/webpack.js --migrate webpack.config.js
v1 config
Output
The text was updated successfully, but these errors were encountered: