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.

BUG - Module Not Found via Webpack

See original GitHub issue
Uncaught ReferenceError: module is not defined
    at Module../node_modules/object-to-formdata/dist/index.mjs (VM406 main.video-service.js:112066)
    at __webpack_require__ (VM406 main.video-service.js:726)

To solve this issue, put your src/index.js at the root dir (i.e. outside of /src)

When bundled via webpack and probably gulp too these errors occur.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
therealparmeshcommented, Apr 27, 2020

Can you try 3.0.9?

1reaction
nooniicommented, Apr 27, 2020

Nice, it’s working like a charm.

Thank you for the update!

Read more comments on GitHub >

github_iconTop Results From Across the Web

webpack: Module not found: Error: Can't resolve (with relative ...
Your file structure says that folder name is Container with a capital C. But you are trying to import it by container with...
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 >
REACT 18 + WEBPACK 5: Compiling Errors · Issue #3418
I have the same problem with the Module not found: Error: Package path ./jsx-runtime.js is not exported from package /node_modules/react (see ...
Read more >
Have a JavaScript Module Not Found Error ... - Airbrake Blog
This error comes from package bundlers, such as rollup or webpack. When building your application and bundling it for the web, these bundlers ......
Read more >
module not found error can't resolve 'fs' in react js - You.com
Your quick fix is to take react scripts down to v4 until a fix for v5 is in place unless you are comfortable...
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