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:
- [Solved] npmError: EPERM: operation not permitted,…
- React uses antd to import error messages on demand
- React Error: Import in body of module; reorder to top import/first
- How to Solve Critical dependency: the request of a dependency is an expression?
- export ‘default’ (imported as ‘mod’) was not found in ‘-!../../../../node_module .vue?vue&type=script&lang=ts&’ (possible exports: __esModule)
- error An unexpected error occurred: “EPERM: operation not permitted, scandir ‘E:\\aPritice\\JDe\\e
- [Solved] xadmin Error: ImportError: cannot import name ‘DEFAULT_FORMATS’ from ‘import_export.admin’ (/home/lijun/app/hippo/hippo_api/venv/lib/python3.8/site-packages/import_export/admin.py)
- Webpack 4 : ERROR in Entry module not found: Error: Can’t resolve ‘./src’
- How to deal with the error “cannot read property ‘set state’ of undefined” in react