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
use of client components causes error in 13.0.7-canary.3 #43854
Comments
This doesn't seem right. Otherwise, the basic hello-world example on the playground would fail. |
@frankandrobot in stackblitz its working fine, so I guess its probably related to Windows paths again? I edited and added a repro. |
I am running into this error as well. The same code works in Windows 11 |
I also get this error after the update from
|
Error is still happening on |
I also get this error after the update from 13.0.7 to 13.0.7-canary.6. Windows 11 // layout.tsx
import Link from "next/link";
import { PropsWithChildren } from "react";
export default function Layout({ params, children }: PropsWithChildren<any>) {
return (
<div>
<div>
<Link href={`/${params.lang}/`}>Home</Link>
<Link href={`/${params.lang}/versions`}>Versions</Link>
</div>
<div>{children}</div>
</div>
);
} |
## Bug The app client entry key was in win32 slashes like `app\blog`, and when we add the new layer checking logic in #43197, `name.startsWith('app/')` doesn't work. Fixes #43854 Fixes #43902 <img width="862" alt="image" src="https://user-images.githubusercontent.com/4800338/207641886-08ffc159-0516-4609-9a1f-8c8693586122.png"> - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)
Could you try to upgrade to 13.0.7? Should be fixed now 🙏 |
I am still getting the same error as @e2goon with 13.0.7. Only in dev builds. Production builds work for me. |
Fixes #43854 , followup for #44011. Normalize the bundlePath so it works in all cases ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)
Windows 10 13.0.8-canary.0 fixed my issue. Nice job! |
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. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue
https://github.com/rafma0/next-brokenuseclient
ㅤ
To Reproduce
Test.tsx
page.tsx
Describe the Bug
Trying to use a client component in server page results in
Expected Behavior
The same code works fine in
13.0.7-canary.1
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: