-
Notifications
You must be signed in to change notification settings - Fork 45
[BUG] TypeError: Cannot read properties of undefined (reading 'split') #473
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
Comments
I think this is related to |
@sommeeeer I saw the thread before opening the ticket, two other people in there reported the same issue with different node versions but no resolutions so far. Is there a way to fix process.versions.node being undefined on workers? I'm using nvm if that matters. |
Thanks @sommeeeer to link the root cause ( We are looking into the best way to solve this - The idea would be that |
I am facing same issue but couldnt able to find temporary solution |
This should have been resolved via #520 released in 0.6.6 Please re-open if you still have some issue. |
Describe the bug
After following the tutorial steps, I'm receiving this error when visiting any page on the site:
Cannot read properties of undefined (reading 'split')
or sometimes this:
TypeError: Cannot read properties of undefined (reading 'run')
Error is only produced on yarn preview or yarn deploy, no issues with yarn dev.
Any ideas why this might happen, and is there a way to debug this better? Since the code is already compiled I can't track the source of the issue
at 77637 (file:///.../frontend/site/.open-next/server-functions/default/handler.mjs:68682:42) at t (file:///.../frontend/site/.open-next/server-functions/default/handler.mjs:75044:16) at 57083 ...
I tried removing .next and .node-modules.
Steps to reproduce
Visiting the / after
yarn dev
produces the error codes above.I'm not sure if you can reproduce it without my repository, but here are some versions:
Next.js version : 14.2.25
opennextjs/cloudflare version: 0.5.12
Yarn version: 1.22.22
Node version: v20.19.0
Expected behavior
No error codes from backend
@opennextjs/cloudflare version
0.5.2
Wrangler version
4.1.0
next info output
Additional context
I also used opennext/sst before this repository to deploy on AWS. That may have a conflict?
The text was updated successfully, but these errors were encountered: