How to Solve antd Import error in Next.js

First create a new _app.js in the root directory of pages, the code is as follows, and then introduce the corresponding antd component

1
2
3
4
5
import App from 'next/app'
import 'antd/dist/antd.css'
export default App

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *