next.js使用报错Cannot use import statement outside a module
Open
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.2k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 2
Description
完全按照官网步骤傻瓜式操作,结果是报错。很痛苦。
https://x.ant.design/docs/react/use-with-next-cn
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the setup described at https://x.ant.design/docs/react/use-with-next-cn and reproduce the reported error, using the attached screenshot as the symptom reference. Record the Next.js, React, and project configuration details needed to identify the failing setup; done means the documented integration runs without the import-module error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- next.js, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100