reactjs / reactjs/react.dev

[Bug]: client-side exception when visiting useLayoutEffect page

Open
#8,059 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug: unconfirmed
Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

Summary

Sometime this afternoon, the page for useLayoutEffect:

https://react.dev/reference/react/useLayoutEffect

broke with:

Application error: a client-side exception has occurred (see the browser console for more information).

Page

https://react.dev/reference/react/useLayoutEffect

Details

Console:

framework-76ad44d61c11f057.js:1 Error: File /src/App.js was defined multiple times. Each file snippet should have a unique path name
    at 145-0963f310eaedf893.js:1:299499
    at Array.reduce (<anonymous>)
    at n (145-0963f310eaedf893.js:1:298499)
    at 145-0963f310eaedf893.js:1:250798
    at lb (framework-76ad44d61c11f057.js:1:41610)
    at aY (framework-76ad44d61c11f057.js:1:61337)
    at aW (framework-76ad44d61c11f057.js:1:60197)
    at aB (framework-76ad44d61c11f057.js:1:59814)
    at ot (framework-76ad44d61c11f057.js:1:76212)
    at ua (framework-76ad44d61c11f057.js:1:111832)
aR @ framework-76ad44d61c11f057.js:1
main-6b2aa10951d4c273.js:1 Error: File /src/App.js was defined multiple times. Each file snippet should have a unique path name
    at 145-0963f310eaedf893.js:1:299499
    at Array.reduce (<anonymous>)
    at n (145-0963f310eaedf893.js:1:298499)
    at 145-0963f310eaedf893.js:1:250798
    at lb (framework-76ad44d61c11f057.js:1:41610)
    at aY (framework-76ad44d61c11f057.js:1:61337)
    at aW (framework-76ad44d61c11f057.js:1:60197)
    at aB (framework-76ad44d61c11f057.js:1:59814)
    at ot (framework-76ad44d61c11f057.js:1:76212)
    at ua (framework-76ad44d61c11f057.js:1:111832)
Q @ main-6b2aa10951d4c273.js:1
main-6b2aa10951d4c273.js:1 A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred
Q @ main-6b2aa10951d4c273.js:1

Browser: Chromium 141, Firefox 143
OS: Linux

Possibly related to 8d73630aa5463c394d1b825d35b804a2a9e4324b (#8058). So, C/C'ing @poteto.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the client-side exception on the useLayoutEffect reference page in Chromium or Firefox and inspect the browser console for the duplicate /src/App.js snippet error. Compare the page with related issue #8058 and identify the duplicated snippet path. Done means the page loads without the client-side exception and its snippets have unique paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.