在creat-react-app 中引入 antd 如下
import {Button} from 'antd'
无论什么组件,只要是antd 控制台就会报错如下
./node_modules/ua-parser-js/src/ua-parser.js
1010:12-19 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
浏览器就是这样显示的
×
Error: Cannot find module "."
▶ 50 stack frames were collapsed.
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.
潇湘沐
webpack引入antd,打包出错@import
为什么双引号引入Paul就报错
antd和antd-mobile可以混合使用吗?
react 引入ant的less文件后报错,不知道如何才能正确引用
相关分类