Bug: Uncaught Error: Cannot find module '9'
See original GitHub issueRelated closed issue https://github.com/parcel-bundler/parcel/issues/198
π Configuration (.babelrc, package.json, cli command)
βββ dist βββ index.html βββ index.js βββ node_modules βββ package-lock.json βββ package.json βββ rust.rs
{
"name": "test",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"start": "parcel index.html"
},
"devDependencies": {
"babel-preset-env": "1.6.1",
"parcel-bundler": "1.5.0"
}
}
π€ Expected Behavior
No error? π
π― Reproduce
npm install
rm -rf .cache
npm start
change console.log("test1")
to console.log("test2")
or something else
Now the log looks like:
13
index.js:5 test1
VM3106:7 13
VM3106:9 test2
Reload page Now the error is thrown:
Navigated to http://localhost:1234/
test.js:33 Uncaught Error: Cannot find module '9'
at newRequire (test.js:33)
at localRequire (test.js:48)
at Object.require.0 (index.js:5)
at newRequire (test.js:42)
at require.4../rust.rs (test.js:67)
at test.js:72
π Possible Solution
π» Code Sample
https://github.com/krokofant/parcel-error
π Your Environment
Software | Version(s) |
---|---|
Parcel | 1.5 |
Node | 9.4.0 |
npm/Yarn | npm 5.6.0 |
Operating System | macOS 10.13.2 |
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Uncaught Error: Cannot find module "." Β· Issue #4921 - GitHub
Do you want to request a feature or report a bug? bug What is the current behavior? Below exception: polyfills.js:1 Error: Cannot find...
Read more >Hi, I get this bug here Error: Cannot find module 'debug'
It could be an issue with your local node_modules directory. I would recommend deleting and re-installing it fresh. Then check your localΒ ...
Read more >browser-external:events:9 uncaught error: module ... - You.com
The Error: Cannot find module 'node:events' occurs if you are not using the latest version of node.js 16.6.0 or above and developing the...
Read more >Cannot find module "discord.js" - Code Help - Glitch Support
I get this error eventhough discord.js is installed: module.js:550 throw err; ^ Error: Cannot find module 'discord.js' at Function.Module.
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug :1523 - "[IDEA] Offload work by distributing trivial ebuild maintenance to users, ... fail with missing localedata/stubs fatal error on hardened andΒ ......
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
@DeMoorJasper I donβt think itβs a rust issue since the missing module is the bundle logic and the wasm reference is still there.
maybe @devongovett could have an idea
here is the diff
@albizures Thanks! I just created a #rust channel in our slack. Wanna hop on? Jasper is looking into it too, so maybe you can help us with some Rust debugging.