-
Notifications
You must be signed in to change notification settings - Fork 245
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
Getting ERR_INVALID_ARG_TYPE error when running yarn dev #1833
Comments
I had this same problem and upon a small amount of investigation a similar issue was happening with Wrangler (cloudflare/workers-sdk#5201); you can temporarily circumvent this problem by using Node 20.11.1 (current LTS). |
Had the same problem running nextjs on pages via |
For now the solutions are (from what I gather):
|
Good to know! We will update our miniflare dependency once it updates |
@wizardlyhel the miniflare repo just updated to 3.20240304.1 and the problem is fixed! |
I have the same issue due to created Hydrogen Storefront of Shopify. |
Finally I had resolved the error by update all the packages of npm located in node_modules folder by command "npm update"
Finally I had resolved the error by update all the packages of npm located in node_modules folder by command "npm update" But another new error comes again on http://localhost:3000/subrequest-profiler |
@HeisUser the 'strategy' argument not being validated is because in the last build of miniflare there was a function that attempted to make a readableStream object from backend data to serve on a given app:
Cut it off but the key is that zero at the end being a second argument passed into the readableStream constructor. The most recent node update added checks that validate things being cast through readableStream are objects:
In this case that zero in particular fails the validateObject check. Granted I'm honestly rusty as heck and haven't been programming for super duper long but as far as I can see that's why you experienced your first error (tldr: new node update broke some erroneous code in miniflare). If you manually went through and updated a bunch of node dependencies then you updating the miniflare one in particular is what fixed your first problem; I can't say for sure what your second is but its probably some updated package playing poorly with some other updated package as they do. At the point you're at I would re-scaffold hydrogen from scratch and then update the miniflare package in particular and nothing else. |
This fix was removed from the last release by mistake. It will be included in the next one 🙏 |
Hey I've tried all the solutions above I have node version: v21.7.3
|
@ramazan-dtas The fix will be released in the next patch (likely today). If you can't wait, you can try installing |
This is fixed with |
What is the full command to run '@shopify/mini-oxygen@next'? |
What is the location of your example repository?
No response
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
2023.10.3
What version of Remix are you using?
2.1.0
Steps to Reproduce
Error started happening today. Ran
yarn dev
, visitedhttp://localhost:3000
and the page doesn't load, plus in the console the app is failing with the following error:Expected Behavior
App should be working locally
Actual Behavior
App crashes with the error described above
The text was updated successfully, but these errors were encountered: