原先我使用老师的方式 npm install antd --save ,引入@import 'antd/dist/antd.css'; 的时候报错.
报错信息如下:
2. 然后我尝试使用官网的next下载方法,链接如下:
https://ant-design.antgroup.com/docs/react/use-with-next-cn


依旧报错
Server Error SyntaxError: Cannot use import statement outside a module This error happened while generating the page. Any console logs will be displayed in the terminal window.