Error with webpack
See original GitHub issueWhen I run npm run build I get the following error.
› npm run build
> react-simple-chatbot@0.1.10 build /Users/yesthis/rchat
> webpack --config webpack.config.prod.js
clean-webpack-plugin: /Users/yesthis/rchat/dist has been removed.
Hash: 6e4e3f42d328d295e90f
Version: webpack 1.15.0
Time: 4153ms
Asset Size Chunks Chunk Names
react-simple-chatbot.js 1.09 MB 0 [emitted] main
+ 149 hidden modules
ERROR in react-simple-chatbot.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
at /Users/yesthis/rchat/node_modules/webpack/lib/optimize/UglifyJsPlugin.js:81:19
at Array.forEach (native)
at Compilation.<anonymous> (/Users/yesthis/rchat/node_modules/webpack/lib/optimize/UglifyJsPlugin.js:44:10)
at Compilation.applyPluginsAsync (/Users/yesthis/rchat/node_modules/tapable/lib/Tapable.js:71:13)
at Compilation.<anonymous> (/Users/yesthis/rchat/node_modules/webpack/lib/Compilation.js:567:9)
at Compilation.applyPluginsAsync (/Users/yesthis/rchat/node_modules/tapable/lib/Tapable.js:60:69)
at Compilation.<anonymous> (/Users/yesthis/rchat/node_modules/webpack/lib/Compilation.js:563:8)
at Compilation.applyPluginsAsync (/Users/yesthis/rchat/node_modules/tapable/lib/Tapable.js:60:69)
at Compilation.seal (/Users/yesthis/rchat/node_modules/webpack/lib/Compilation.js:525:7)
at Compiler.<anonymous> (/Users/yesthis/rchat/node_modules/webpack/lib/Compiler.js:397:15)
at /Users/yesthis/rchat/node_modules/tapable/lib/Tapable.js:103:11
at Compilation.<anonymous> (/Users/yesthis/rchat/node_modules/webpack/lib/Compilation.js:445:10)
at /Users/yesthis/rchat/node_modules/webpack/lib/Compilation.js:417:12
at /Users/yesthis/rchat/node_modules/webpack/lib/Compilation.js:332:10
at /Users/yesthis/rchat/node_modules/async/lib/async.js:52:16
at done (/Users/yesthis/rchat/node_modules/async/lib/async.js:246:17)
at /Users/yesthis/rchat/node_modules/async/lib/async.js:44:16
at /Users/yesthis/rchat/node_modules/webpack/lib/Compilation.js:332:10
at /Users/yesthis/rchat/node_modules/async/lib/async.js:52:16
at done (/Users/yesthis/rchat/node_modules/async/lib/async.js:246:17)
at /Users/yesthis/rchat/node_modules/async/lib/async.js:44:16
at /Users/yesthis/rchat/node_modules/webpack/lib/Compilation.js:332:10
at /Users/yesthis/rchat/node_modules/async/lib/async.js:52:16
at done (/Users/yesthis/rchat/node_modules/async/lib/async.js:246:17)
at /Users/yesthis/rchat/node_modules/async/lib/async.js:44:16
at /Users/yesthis/rchat/node_modules/webpack/lib/Compilation.js:332:10
at /Users/yesthis/rchat/node_modules/async/lib/async.js:52:16
at done (/Users/yesthis/rchat/node_modules/async/lib/async.js:246:17)
at /Users/yesthis/rchat/node_modules/async/lib/async.js:44:16
at /Users/yesthis/rchat/node_modules/webpack/lib/Compilation.js:332:10
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How I solved and debugged my Webpack issue through trial ...
What can you do if you have a webpack issue? · Search in the GitHub issues similar to yours. · Try to check...
Read more >How to Prevent Webpack Error after npm Install?
No problem! I updated my answer again. Remember in your package.json file, inside of devDependencies , manually change the webpack version to 2.1...
Read more >How to fix Error: cannot find module "webpack" - Educative.io
1. Install webpack in the local app folder · 2. Link webpack to your project.
Read more >Webpack 5 errors | ImmutableX Documentation
The reason for this error is that create-react-app uses a version of webpack greater than 5, which, unlike versions < 5, does not...
Read more >webpack errors after update to 3.0.0-beta.16 #891 - GitHub
webpack errors after update to 3.0.0-beta.16 #891 ; bug report Issue is probably a bug, but it needs to be checked ; bundler:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Done. Please pull the last change and run
npm startagainCan you provide some guidelines? May be upload a sample
appfolder?