-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set property 'wasm' of undefined. Mismatched mime
versions?
#1724
Comments
Yep, reproducible test repo will be great |
I realize this is extremely involved, so I admire your patience should you choose to help me with this. React Static is no walk-in-the-park, but here we go!
Given that this is an alpha branch, any number of things could go wrong, so if you hit a roadblock, let me know and I'll do my best to guide you to the issue. Points of interest:
|
Thanks for repo, i will see on this in near future, anyway PR welcome |
Thanks. |
This rabbit hole has led me through a few packages:
In the So when webpack dev server calls |
I don't understand you |
So I looked for the ➜ react-static (v7) ✔ yarn why mime
yarn why v1.12.1
[1/4] 🤔 Why do we have the module "mime"...?
[2/4] 🚚 Initialising dependency graph...
[3/4] 🔍 Finding dependency...
[4/4] 🚡 Calculating file sizes...
=> Found "[email protected]"
info Has been hoisted to "mime"
info Reasons this module exists
- "workspace-aggregator-13bb6450-ff97-4a1c-a3c5-091240e53182" depends on it
- Hoisted from "_project_#react-static#url-loader#mime"
- Hoisted from "_project_#react-static#webpack-dev-server#webpack-dev-middleware#mime"
info Disk size without dependencies: "144KB"
info Disk size with unique dependencies: "144KB"
info Disk size with transitive dependencies: "144KB"
info Number of shared dependencies: 0
=> Found "send#[email protected]"
info This module exists because "_project_#react-static#webpack-dev-server#express#send" depends on it.
info Disk size without dependencies: "72KB"
info Disk size with unique dependencies: "72KB"
info Disk size with transitive dependencies: "72KB"
info Number of shared dependencies: 0
✨ Done in 0.91s. It appears that the latest This produces the OP error. |
I've also updated the OP description with the stack trace and a link to the dev-server line that is erroring. |
mime
dependencies?
mime
dependencies?mime
versions?
We use latest version of mime https://github.com/webpack/webpack-dev-middleware/blob/master/package.json#L20 |
Anyway we can dd more check to avoid problem in future |
Yeah, if |
Since `[email protected]`, the `mime.types` property has been deprecated and privatized. I also believe that this call is no longer needed in the new version. Fixes webpack#1724
After testing this in an isolated reproduction, it appears to be something to do with React-Static's configuration. Will reopen if needed. Thanks for being my rubber-duck! |
Code
This is currently in a local WIP branch of React Static v7.
This bug may be related to #1580?
The line of code
[basic]/[webpack-dev-server]/lib/Server.js:160:36
is referring to ishttps://github.com/webpack/webpack-dev-server/blob/master/lib/Server.js#L160
Expected Behavior
The dev server should start without errors.
Actual Behavior
When attempting to start the dev server,
Cannot set property 'wasm' of undefined
is logged and the process hangs.For Bugs; How can we reproduce the behavior?
Working on a reproduction link, will edit to include asap.
For Features; What is the motivation and/or use-case for the feature?
The text was updated successfully, but these errors were encountered: