7***@qq.com
7***@qq.com
  • 发布:2018-12-11 11:42
  • 更新:2019-01-14 15:55
  • 阅读:2335

mpvue小程序转uni-app报错

分类:uni-app

根据http://ask.dcloud.net.cn/article/34945这里的教程,想用mpvue开发的小程序转成uni-app,按照前面的教程复制粘贴好后,用真机调试,但是编译不过,每次都是报:
11:29:47.513 F:\hbuilder\HBuilderX.1.2.1.20181126.full\HBuilderX\plugins\uniapp\build\dev-server.js:17
11:29:47.513 throw err
11:29:47.529 ^
11:29:47.529 TypeError: Path must be a string. Received undefined
11:29:47.529 at assertPath (path.js:28:11)
11:29:47.529 at Object.extname (path.js:908:5)
11:29:47.529 at parsePagesJson (F:\hbuilder\HBuilderX.1.2.1.20181126.full\HBuilderX\plugins\uniapp\lib\parsePagesJson.js:73:24)
11:29:47.545 at genEntry (F:\hbuilder\HBuilderX.1.2.1.20181126.full\HBuilderX\plugins\uniapp\build\getEntry.js:30:20)
11:29:47.545 at getEntry (F:\hbuilder\HBuilderX.1.2.1.20181126.full\HBuilderX\plugins\uniapp\build\getEntry.js:83:14)
11:29:47.545 at Object.<anonymous> (F:\hbuilder\HBuilderX.1.2.1.20181126.full\HBuilderX\plugins\uniapp\build\webpack.base.conf.js:36:5)
11:29:47.545 at Module._compile (module.js:652:30)
11:29:47.545 at Object.Module._extensions..js (module.js:663:10)
11:29:47.545 at Module.load (module.js:565:32)
11:29:47.560 at tryModuleLoad (module.js:505:12)
11:29:47.560 at Function.Module._load (module.js:497:3)
11:29:47.560 at Module.require (module.js:596:17)
11:29:47.560 at require (internal/module.js:11:18)
11:29:47.560 at Object.<anonymous> (F:\hbuilder\HBuilderX.1.2.1.20181126.full\HBuilderX\plugins\uniapp\build\webpack.dev.conf.js:5:25)
11:29:47.560 at Module._compile (module.js:652:30)
11:29:47.576 at Object.Module._extensions..js (module.js:663:10)


请问各位大佬要怎么修改,谢谢

2018-12-11 11:42 负责人:无 分享
已邀请:
DCloud_UNI_GSQ

DCloud_UNI_GSQ

提供个demo,帮你分析一下

小菜2878

小菜2878

我也遇到了,好多天没动代码。更新后突然就这样了

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