模块构建失败(来自./node_modules/babel-loader/lib/index.js)[Reactjs + Antd]

时间:2019-01-04 12:24:55

标签: reactjs create-react-app antd

我正在使用create-react-app(最新版本)来开发网络应用。我正在尝试按照本手册“ https://ant.design/docs/react/use-with-create-react-app” =>“安装和初始化”和“导入antd”来安装和导入antd。

但是,我遇到以下错误:

    *"./node_modules/antd/dist/antd.css (./node_modules/css-loader??ref--6-
        oneOf-3-1!./node_modules/postcss-loader/src??
            postcss!./node_modules/antd/dist/antd.css)    
    Module not found: Can't resolve '/Library/WebServer/Documents/react-    
express/react-express_client/node_modules/babel-loader/lib/index.js' in     
'/Library/WebServer/Documents/react-express/react-express_client'"*

几周前,当我在其他项目中安装antd时,一切工作正常。

0 个答案:

没有答案