sonicsunsky
sonicsunsky
  • 发布:2018-09-06 10:25
  • 更新:2018-09-28 15:45
  • 阅读:7382

TypeError: Cannot read property 'indexOf' of undefined

分类:HBuilderX

之前在HBuilderX1.0.47上运行好好的项目,在升级到1.0.48最新版本之后就编译不过了,很头疼的问题,检查了pages.json和manifest.json都没有问题,但始终都是编译不过,应该是HBuilderX的bug,希望下个版本赶紧修复,关键是提示的错误并没有说明是项目里哪个文件中错误,根本无从下手去找问题

10:16:19.164 TypeError: Cannot read property 'indexOf' of undefined
10:16:19.188 at Resolver.parse (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:181:28)
10:16:19.189 at Resolver.<anonymous> (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\ParsePlugin.js:14:25)
10:16:19.217 at Resolver.applyPluginsAsyncSeriesBailResult1 (D:\HBuilderX\plugins\uniapp\node_modules\tapable\lib\Tapable.js:256:13)
10:16:19.219 at runNormal (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:130:20)
10:16:19.234 at Resolver.doResolve (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:116:3)
10:16:19.235 at Resolver.<anonymous> (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\UnsafeCachePlugin.js:37:12)
10:16:19.245 at Resolver.applyPluginsAsyncSeriesBailResult1 (D:\HBuilderX\plugins\uniapp\node_modules\tapable\lib\Tapable.js:256:13)
10:16:19.246 at runNormal (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:130:20)
10:16:19.252 at Resolver.doResolve (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:116:3)
10:16:19.253 at Resolver.resolve (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:86:14)
10:16:19.261 at resolve (D:\HBuilderX\plugins\uniapp\node_modules\webpack\lib\NormalModule.js:133:14)
10:16:19.262 at Promise (D:\HBuilderX\plugins\uniapp\lib\mpvue-loader\lib\mp-compiler\index.js:225:7)
10:16:19.271 at new Promise (<anonymous>)
10:16:19.271 at Promise.all.Object.keys.map.k (D:\HBuilderX\plugins\uniapp\lib\mpvue-loader\lib\mp-compiler\index.js:224:12)
10:16:19.277 at Array.map (<anonymous>)
10:16:19.278 at resolveSrc (D:\HBuilderX\plugins\uniapp\lib\mpvue-loader\lib\mp-compiler\index.js:223:52)

2018-09-06 10:25 1 条评论 负责人:无 分享
已邀请:
sonicsunsky

sonicsunsky (作者)

10:27:49.637 TypeError: Cannot read property 'indexOf' of undefined
10:27:49.637 at Resolver.parse (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:181:28)
10:27:49.654 at Resolver.<anonymous> (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\ParsePlugin.js:14:25)
10:27:49.655 at Resolver.applyPluginsAsyncSeriesBailResult1 (D:\HBuilderX\plugins\uniapp\node_modules\tapable\lib\Tapable.js:256:13)
10:27:49.673 at runNormal (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:130:20)
10:27:49.674 at Resolver.doResolve (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:116:3)
10:27:49.708 at Resolver.<anonymous> (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\UnsafeCachePlugin.js:37:12)
10:27:49.709 at Resolver.applyPluginsAsyncSeriesBailResult1 (D:\HBuilderX\plugins\uniapp\node_modules\tapable\lib\Tapable.js:256:13)
10:27:49.742 at runNormal (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:130:20)
10:27:49.743 at Resolver.doResolve (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:116:3)
10:27:49.770 at Resolver.resolve (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:86:14)
10:27:49.771 at resolve (D:\HBuilderX\plugins\uniapp\node_modules\webpack\lib\NormalModule.js:133:14)
10:27:49.791 at Promise (D:\HBuilderX\plugins\uniapp\lib\mpvue-loader\lib\mp-compiler\index.js:225:7)
10:27:49.792 at new Promise (<anonymous>)
10:27:49.840 at Promise.all.Object.keys.map.k (D:\HBuilderX\plugins\uniapp\lib\mpvue-loader\lib\mp-compiler\index.js:224:12)
10:27:49.841 at Array.map (<anonymous>)
10:27:49.885 at resolveSrc (D:\HBuilderX\plugins\uniapp\lib\mpvue-loader\lib\mp-compiler\index.js:223:52)
10:27:49.916 TypeError: Cannot read property 'indexOf' of undefined
10:27:49.917 at Resolver.parse (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:181:28)
10:27:49.957 at Resolver.<anonymous> (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\ParsePlugin.js:14:25)
10:27:49.958 at Resolver.applyPluginsAsyncSeriesBailResult1 (D:\HBuilderX\plugins\uniapp\node_modules\tapable\lib\Tapable.js:256:13)
10:27:49.989 at runNormal (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:130:20)
10:27:49.990 at Resolver.doResolve (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:116:3)
10:27:50.020 at Resolver.<anonymous> (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\UnsafeCachePlugin.js:37:12)
10:27:50.022 at Resolver.applyPluginsAsyncSeriesBailResult1 (D:\HBuilderX\plugins\uniapp\node_modules\tapable\lib\Tapable.js:256:13)
10:27:50.051 at runNormal (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:130:20)
10:27:50.054 at Resolver.doResolve (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:116:3)
10:27:50.086 at Resolver.resolve (D:\HBuilderX\plugins\uniapp\node_modules\enhanced-resolve\lib\Resolver.js:86:14)
10:27:50.087 at resolve (D:\HBuilderX\plugins\uniapp\node_modules\webpack\lib\NormalModule.js:133:14)
10:27:50.118 at Promise (D:\HBuilderX\plugins\uniapp\lib\mpvue-loader\lib\mp-compiler\index.js:225:7)
10:27:50.127 at new Promise (<anonymous>)
10:27:50.163 at Promise.all.Object.keys.map.k (D:\HBuilderX\plugins\uniapp\lib\mpvue-loader\lib\mp-compiler\index.js:224:12)
10:27:50.164 at Array.map (<anonymous>)
10:27:50.191 at resolveSrc (D:\HBuilderX\plugins\uniapp\lib\mpvue-loader\lib\mp-compiler\index.js:223:52)

DCloud_UNI_GSQ

DCloud_UNI_GSQ

经过检查为缺少组件引用导致。

曹操

曹操

一样的问题,编译不通过

该问题目前已经被锁定, 无法添加新回复