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

Next13: Cannot read properties of undefined (reading '') #42033

Closed
1 task done
benny856694 opened this issue Oct 28, 2022 · 8 comments
Closed
1 task done

Next13: Cannot read properties of undefined (reading '') #42033

benny856694 opened this issue Oct 28, 2022 · 8 comments
Labels
area: app App directory (appDir: true)

Comments

@benny856694
Copy link

benny856694 commented Oct 28, 2022

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Pro
Binaries:
Node: 16.17.0
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 13.0.1-canary.0
eslint-config-next: 13.0.0
react: 18.2.0
react-dom: 18.2.0

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

Cannot read properties of undefined (reading '')

Expected Behavior

should not throw this exception

Link to reproduction

https://github.com/benny856694/next13-error

To Reproduce

  1. pnpm install
  2. run dev
  3. open "localhost:3000" page in browser, check the log in backend.
@benny856694 benny856694 added the bug Issue was opened via the bug report template. label Oct 28, 2022
@james-elicx
Copy link

I believe this is a duplicate of #41806

@theashishmaurya
Copy link

I also run into this problem when building my next app.
image

@benny856694
Copy link
Author

I believe this is a duplicate of #41806

I noticed that issue is using 12.3.2-canary.43, not sure if it is Nextjs 13

@james-elicx
Copy link

I believe this is a duplicate of #41806

I noticed that issue is using 12.3.2-canary.43, not sure if it is Nextjs 13

That was just the version number of the canary available at the time, it still had all the same features as nextjs13, I've bumped the canary number I use to the latest.

@Britnell

This comment was marked as off-topic.

@balazsorban44
Copy link
Member

It does sound/look like a duplicate of #41806, but I could reproduce this one locally on my Linux machine, while the other I couldn't. So it seems related but maybe not the same issue.

@balazsorban44 balazsorban44 added kind: bug area: app App directory (appDir: true) and removed bug Issue was opened via the bug report template. labels Oct 28, 2022
@timneutkens
Copy link
Member

Closing as duplicate of #41806. I had a look at your reproduction and the problem is that you're rendering <Head> from next/head in the root layout, that should be <head>.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2022

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: app App directory (appDir: true)
Projects
None yet
Development

No branches or pull requests

6 participants