You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Link component redirect to home page in root page.tsx (app/page.tsx):
import Link from 'next/link';
<Link href="/">Go Home</Link>
Run npm run build and npm run start.
Go to localhost:3000
Press to the link "Go Home"
What is expected?
NextJS app should not broken
What is actually happening?
NextJS app broken and throw the error in console: TypeError: Cannot read properties of null (reading '1')
See:
Environment
Info
antd
5.8.4
React
React 18
System
Windows
Browser
Chrome
I checked and ensuring that the cause comes from the cssinjs package because when I trying to remove the StyleProvider component and re-build then the nextjs app works fine and vice versa.
It is similar to this issue but occurs in production mode: #43510 (comment)
The text was updated successfully, but these errors were encountered:
Reproduction link
https://github.com/ant-design/ant-design-examples/tree/main/examples/with-nextjs-app-router-inline-style
Steps to reproduce
npm i
to install dependencies.npm run build
andnpm run start
.What is expected?
NextJS app should not broken
What is actually happening?
NextJS app broken and throw the error in console: TypeError: Cannot read properties of null (reading '1')
See:
I checked and ensuring that the cause comes from the cssinjs package because when I trying to remove the StyleProvider component and re-build then the nextjs app works fine and vice versa.
It is similar to this issue but occurs in production mode: #43510 (comment)
The text was updated successfully, but these errors were encountered: