Build Error when trying to compile with 'use client' files. #65896
Labels
bug
Issue was opened via the bug report template.
Module Resolution
Module resolution (CJS / ESM, module resolving)
Link to the code that reproduces this issue
https://github.com/iliacodes/test
To Reproduce
Run
npx create-next-app@latest
Create a new component with simple text.
Run
npm run dev
Change component by adding 'use client' to top of file.
Run
npm run dev
Current vs. Expected behavior
Current behavior:
Expected behavior:
To display text in component in expected area.
Provide environment information
Which area(s) are affected? (Select all that apply)
Module Resolution
Which stage(s) are affected? (Select all that apply)
next build (local), Vercel (Deployed)
Additional context
My username has backticks, haven't really had many issues previously. Figured that must be it. I created a new docker container and the code worked as expected.
After, I google'd and found a discussion previously addressing this issue in 2023
#47736
The issue seemed to have been closed when users updated to 13.3.1-canary.4 and only effected windows users.
Therefore, I tried this version and the 'use client' file worked as expected.
The text was updated successfully, but these errors were encountered: