简体   繁体   English

TypeError:无法读取未定义的Webpack的属性“ 0”

[英]TypeError: Cannot read property '0' of undefined Webpack

I'm trying to create a demo of ant-design for that I've installed ant-design and now when I'm hitting 我正在尝试为已经安装了ant-design的ant-design演示创建一个演示,现在当我点击

npm start

I got this error 我得到这个错误

           dora: listened on 8000
📦  1/2 build modules/opt/lampp/htdocs/antddemo/node_modules/webpack/lib/ExternalModuleFactoryPlugin.js:19
                        const dependency = data.dependencies[0];
                                                            ^

TypeError: Cannot read property '0' of undefined
    at /opt/lampp/htdocs/antddemo/node_modules/webpack/lib/ExternalModuleFactoryPlugin.js:19:40
    at /opt/lampp/htdocs/antddemo/node_modules/atool-build/node_modules/webpack/lib/NormalModuleFactory.js:159:3
    at NormalModuleFactory.<anonymous> (/opt/lampp/htdocs/antddemo/node_modules/atool-build/node_modules/tapable/lib/Tapable.js:82:11)
    at /opt/lampp/htdocs/antddemo/node_modules/npm-install-webpack-plugin-cn/src/plugin.js:24:7
    at /opt/lampp/htdocs/antddemo/node_modules/atool-build/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:24:19
    at onResolved (/opt/lampp/htdocs/antddemo/node_modules/atool-build/node_modules/enhanced-resolve/lib/Resolver.js:38:18)
    at innerCallback (/opt/lampp/htdocs/antddemo/node_modules/atool-build/node_modules/enhanced-resolve/lib/Resolver.js:94:11)
    at loggingCallbackWrapper (/opt/lampp/htdocs/antddemo/node_modules/atool-build/node_modules/enhanced-resolve/lib/createInnerCallback.js:21:19)
    at /opt/lampp/htdocs/antddemo/node_modules/atool-build/node_modules/tapable/lib/Tapable.js:134:6
    at /opt/lampp/htdocs/antddemo/node_modules/atool-build/node_modules/enhanced-resolve/lib/ModulesInDirectoriesPlugin.js:54:23

I tried couple of solutions but since I'm new to ant-design it's getting hard to digest the concept. 我尝试了几种解决方案,但是由于我是ant-design新手,因此很难理解这个概念。 Is there anyone for me to fix this? 有谁可以解决这个问题吗?

Thanks in advance :) 提前致谢 :)

Solved this by following installation 通过以下安装解决了这个问题

install extract-text-webpack-plugin@^2.0.0-beta

REF: Webpack Issue#2764 参考: Webpack问题#2764

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TypeError:无法读取hjs-webpack中未定义的属性“ push” - TypeError: Cannot read property 'push' of undefined in hjs-webpack Webpack 4 + bootstrap [TypeError: Cannot read property 'jquery' of undefined] - Webpack 4 + bootstrap [TypeError: Cannot read property 'jquery' of undefined] Webpack Uncaught TypeError:无法读取未定义的属性“调用” - Webpack Uncaught TypeError: Cannot read property 'call' of undefined Webpack 4 css模块TypeError:无法读取未定义的属性“context” - Webpack 4 css modules TypeError: Cannot read property 'context' of undefined 模块构建失败:TypeError:无法读取未定义的属性“上下文”-Webpack - Module build failed: TypeError: Cannot read property 'context' of undefined - Webpack React / Webpack / Django-未捕获的TypeError:无法读取未定义的属性“ XXX” - React/Webpack/Django - Uncaught TypeError: Cannot read property 'XXX' of undefined 类型错误:无法使用 ReactJs 在 webpack-cli 中读取未定义的属性“presetToOptions” - TypeError: Cannot read property 'presetToOptions' of undefined in webpack-cli with ReactJs 未捕获的类型错误:无法读取 __webpack_require__ 处未定义的属性“调用” - Uncaught TypeError: Cannot read property 'call' of undefined at __webpack_require__ 类型错误:无法读取 null、webpack 的属性“哈希” - TypeError: Cannot read property 'hash' of null, webpack TypeError:无法读取未定义的属性“未定义” - TypeError: Cannot read property 'undefined' of undefined
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM