Fast refresh doesn't work for client components containing Chinese characters when using --turbo mode in Next 14
plimeor opened this issue · 0 comments
plimeor commented
Link to the code that reproduces this issue
https://github.com/rquanx/next-fast-refresh-error
To Reproduce
next dev
- open localhost:3000
- edit
Test.tsx
and save
Current vs. Expected behavior
Current
fast-refresh failed, the page will full reload
Expected
fast-refresh worked
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.2.0: Fri Dec 6 19:02:41 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6030
Available memory (MB): 18432
Available CPU cores: 11
Binaries:
Node: 18.20.4
npm: 10.7.0
Yarn: 1.22.22
pnpm: 9.14.3
Relevant Packages:
next: 14.2.20
eslint-config-next: 13.5.4
react: 18.2.0
react-dom: 18.2.0
typescript: 5.2.2
Next.js Config:
output: standalone
Which area(s) are affected? (Select all that apply)
Turbopack, Developer Experience
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
I suspect this might be a Turbopack issue, as removing the --turbo argument resolves the fast refresh problem.
I’m aware that this issue has been fixed in the canary version(#70586), but I’d like to know if it can also be addressed in Next 14?