-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Node 20: Running any remix app returns TypeError: Value of "this" must be of type URLSearchParams #6118
Node 20: Running any remix app returns TypeError: Value of "this" must be of type URLSearchParams #6118
Comments
I seem to be facing this too on a test project with the following set in package.json:
full package.json below:
|
I just ran into this when trying to upgrade to node v20. |
I fixed this for my project by updating to @remix-run/web-fetch@^4.3.4 (see remix-run/web-std-io#32) |
For others who will run into this issue, additional confirmation that bumping to Node 20.0.0 results in this error |
This was necessary because, apparently, there is a bug in Remix when using a recent enough version of Node (20.0.0). See the following issue for more info: - remix-run/remix#6118
@JacobJEdwards can you confirm that this a node 20 related issue? |
I can confirm it happens with node 20 and not with node 18 |
This should be fixed in 1.16.0, please reopen if this is still an issue! |
Can confirm that updating to 1.16.0 fixed it ! |
1.16.0 fixed my problem too |
I'm still seeing this issue using node 20 and remix 2.12.0 |
I just saw this in Node 20 and Remix 2.11.1 |
Are you calling https://github.com/remix-run/remix/blob/main/CHANGELOG.md#undici |
@felangel @toptal-dave If this is still an issue for you, especially after reviewing @kiliman comment, please open a new issue with a reproduce case 🙏🏼 |
What version of Remix are you using?
1.15.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
Expected Behavior
localhost:3000 shows initial remix screen
Actual Behavior
Remix App Server started at http://localhost:3000 (http://192.168.1.82:3000)
TypeError: Value of "this" must be of type URLSearchParams
at new NodeError (node:internal/errors:399:5)
at Proxy.set (node:internal/url:519:13)
at Proxy. (/Users/jacobedwards/my-remix-app/node_modules/@remix-run/web-fetch/src/headers.js:124:44)
at createRemixHeaders (/Users/jacobedwards/my-remix-app/node_modules/@remix-run/express/dist/server.js:57:17)
at createRemixRequest (/Users/jacobedwards/my-remix-app/node_modules/@remix-run/express/dist/server.js:71:14)
at /Users/jacobedwards/my-remix-app/node_modules/@remix-run/express/dist/server.js:37:21
at /Users/jacobedwards/my-remix-app/node_modules/@remix-run/serve/dist/index.js:47:7
at Layer.handle [as handle_request] (/Users/jacobedwards/my-remix-app/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/jacobedwards/my-remix-app/node_modules/express/lib/router/route.js:144:13)
at next (/Users/jacobedwards/my-remix-app/node_modules/express/lib/router/route.js:140:7)
GET / 500 - - 100.150 ms
The text was updated successfully, but these errors were encountered: