ant-design / ant-design/x

next.js使用报错Cannot use import statement outside a module

Open
#503 1 comment 0 reactions 0 assignees View on GitHub
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

Image

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.