question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error with webpack

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
LucasBassetticommented, Jun 18, 2017

Done. Please pull the last change and run npm start again

0reactions
niksmaccommented, Jun 18, 2017

Can you provide some guidelines? May be upload a sample app folder?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found