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

Using --turbo Flag With npm run dev Seems To Throw "Encountered two children with the same key, 0" Error #57743

Closed
1 task done
RockyWearsAHat opened this issue Oct 30, 2023 · 4 comments · Fixed by #58249
Closed
1 task done
Labels
bug Issue was opened via the bug report template. locked Turbopack Related to Turbopack with Next.js.

Comments

@RockyWearsAHat
Copy link

Link to the code that reproduces this issue

https://github.com/RockyWearsAHat/nextKeysMustBeUniqueWhenUsingTurbo

To Reproduce

likely have to npm install gsap / remove the GSAP import from FirstGSAPPage (there's no actual code that uses it, just the import, bug is not specific to GSAP as even after removing import gsap bug persists)

then

npm run dev

--turbo already declared in package.json

Current vs. Expected behavior

Page expected to render without errors.

Page renders with errors that I generally associate with array.map when the objects don't have keys, but only when the --turbo flag is declared inside the the package.json

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 Home
Binaries:
  Node: 20.9.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.0.1-canary.3
  eslint-config-next: 14.0.0
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.2.2
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Turbopack (--turbo)

Additional context

No response

@RockyWearsAHat RockyWearsAHat added the bug Issue was opened via the bug report template. label Oct 30, 2023
@github-actions github-actions bot added the Turbopack Related to Turbopack with Next.js. label Oct 30, 2023
@jersoncarin
Copy link

Same with my issue #57709

@federicocappellotto97
Copy link

Same, only with turbo i got Encountered two children with the same key, 0

@li-jia-nan

This comment has been minimized.

@kodiakhq kodiakhq bot closed this as completed in #58249 Nov 9, 2023
kodiakhq bot pushed a commit that referenced this issue Nov 9, 2023
### What?

gives all elements in the array unique keys

should fix #57709 and fix #57743
Copy link
Contributor

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. locked Turbopack Related to Turbopack with Next.js.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants