-
Notifications
You must be signed in to change notification settings - Fork 27.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
Error [TypeError]: Cannot read properties of null (reading 'length') at isSubdomain with Next 13 #55181
Comments
The stack trace does not mention Next.js, and You accidentally linked to a replay of the replay.io new tab, instead of your own app. "minimal changes" is also subjective, if you can link to the actual repo with the last commit that worked and broke, it might help with speeding up the investigation. From what you are describing, it sounds to me that you are using a custom server setup, where |
We cannot recreate the issue with the provided information. Please add a reproduction in order for us to be able to investigate. Why was this issue marked with the
|
### What? Removes Replay.io as a valid reproduction link from our bug template. ### Why? Based on issues #55181 and #55278 it looks like people are struggling to report the correct thing. Also, without source maps, replays are still harder to use for debugging than an actual code base Ref: [Slack thread](https://vercel.slack.com/archives/C04DUD7EB1B/p1694608481515339?thread_ts=1694428848.689079&cid=C04DUD7EB1B)
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue or a replay of the bug
https://app.replay.io/recording/replay--41152657-8bf0-4f25-b67c-d4a985bb8dfe
To Reproduce
npm run dev
I first noticed this after doing a deploy I got 404 on my homepage in production. I redeployed the same code using Vercel and the issue disappeared but now it is happening for me locally. One interesting thing was that when the bug was happening in production my site www.employbl.com did not work but the vercel prod deployment https://employbl-frontend-employbl.vercel.app/ loaded fine. Now it's my local that's not working as both sites work after the redeploy.
Current vs. Expected behavior
Current behavior in my local env is the site fails to load with the message in the terminal from above. Locally, after a long time I get a 500 response
Expected behavior is for the page to load. This was working fine last week I've made minimal changes.
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.6.0: Wed Jul 5 22:21:53 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6020 Binaries: Node: 20.6.0 npm: 9.8.1 Yarn: N/A pnpm: N/A Relevant Packages: next: 13.4.20-canary.23 eslint-config-next: 13.1.0 react: 18.2.0 react-dom: 18.2.0 typescript: 4.7.4 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Additional context
I test across Next 13.03 as suggested in this stackoverflow question: https://stackoverflow.com/questions/74415937/nextjs-typeerror-cannot-read-properties-of-null-reading-length as well as canary and latest stable release but keep getting the same issue.
The text was updated successfully, but these errors were encountered: