Skip to content
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

Remix: TypeError: Value of "this" must be of type URLSearchParams #28

Closed
hempun10 opened this issue May 17, 2024 · 1 comment
Closed

Comments

@hempun10
Copy link

Issue Summary

I'm encountering an issue that persists even after following the recommended steps from a related issue. Specifically, after reading #6118, which suggested that the problem might be due to the Node.js version, I downgraded from Node.js v20 to v18. However, the issue still occurs.

Steps taken after reading issue

  1. Initially, I was using Node.js v20.
  2. After encountering the issue, I downgraded to Node.js v18 based on the suggestions in issue #6118.
  3. Despite the downgrade, the issue continues to occur.

Actual Behavior

shows initial remix screen

Additional Context

Operating System: macOS 14.4.1
Remix Version: 1.6.7
Node.js Version: (currently v18)
TypeError: Value of "this" must be of type URLSearchParams
at Proxy.set (node:internal/url:578:13)
at Proxy. (/Users/himalpun/Developer/remix-fundamentals/node_modules/@remix-run/web-fetch/src/headers.js:124:44)
at createRemixHeaders (/Users/himalpun/Developer/remix-fundamentals/node_modules/@remix-run/express/dist/server.js:58:17)
at createRemixRequest (/Users/himalpun/Developer/remix-fundamentals/node_modules/@remix-run/express/dist/server.js:74:14)
at /Users/himalpun/Developer/remix-fundamentals/node_modules/@remix-run/express/dist/server.js:37:21
at /Users/himalpun/Developer/remix-fundamentals/node_modules/@remix-run/serve/dist/index.js:48:7
at Layer.handle [as handle_request] (/Users/himalpun/Developer/remix-fundamentals/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/himalpun/Developer/remix-fundamentals/node_modules/express/lib/router/route.js:144:13)
at next (/Users/himalpun/Developer/remix-fundamentals/node_modules/express/lib/router/route.js:138:14)
at next (/Users/himalpun/Developer/remix-fundamentals/node_modules/express/lib/router/route.js:138:14)
GET / 500 - - 193.623 ms

Request for Help

Does anyone have insights or suggestions on what might be causing this issue? Are there other potential factors besides the Node.js version that I should consider? @kentcdodds

@chopsueey
Copy link

chopsueey commented Jul 21, 2024

I encountered the same error. After downgrading node to v18 from v20 with nvm and restarting my vs code it worked.
Using Ubuntu 22.04.4 LTS here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants