在creat-react-app 中引入 antd 如下import {Button} from 'antd'無論什么組件,只要是antd 控制臺就會報錯如下./node_modules/ua-parser-js/src/ua-parser.js1010: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.
引入 antd 就報 Critical dependency: require fun... 的錯誤
不負(fù)相思意
2019-02-14 22:42:23