Why page router does not natively support antd references but app router works? #62189
Unanswered
Autumn00air
asked this question in
App Router
Replies: 1 comment 1 reply
-
check it out: link It should work. If not, please share your code exactly where the error is occurring. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the next application created by the latest next.js. Whether I use page router or application router, it is successful when it is started, there is no doubt about it. However, when I reference the antd library, the application router still work, but the page router reports an error: SyntaxError: Cannot use import statement outside a module. It is 2024 now!!!
Beta Was this translation helpful? Give feedback.
All reactions