chuanyao0829@163.com
chuanyao0829@163.com
  • 发布:2019-12-12 16:54
  • 更新:2019-12-12 16:54
  • 阅读:312

HbuilderX更新后打包un-appi项目报错:Unexpected token s in JSON at position 116...读取app.json失败...

分类:uni-app

没人会吗???项目本来没有问题,真机测试打包测试都正常,项目放置几天没动,期间更新了一次hbuilderX,再次打包和测试都报错,不知道是什么原因,求指教。

[HBuilder] 18:03:54.894 SyntaxError: Unexpected token s in JSON at position 116
[HBuilder] 18:03:54.895 at JSON.parse ()
[HBuilder] 18:03:54.895 at parseConfig (D:\GCY-program\HBuilderX\plugins\weapp-tools\lib\index.js:1:5457)
[HBuilder] 18:03:54.896 at index (D:\GCY-program\HBuilderX\plugins\weapp-tools\lib\index.js:1:15980)
[HBuilder] 18:03:54.896 at Promise (D:\GCY-program\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\webpack-app-plus-plugin\index.js:103:13)
[HBuilder] 18:03:54.897 at new Promise ()
[HBuilder] 18:03:54.897 at compiler.hooks.done.tapPromise.compilation (D:\GCY-program\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\webpack-app-plus-plugin\index.js:81:16)
[HBuilder] 18:03:54.898 at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\GCY-program\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), :17:17)
[HBuilder] 18:03:54.899 at AsyncSeriesHook.lazyCompileHook (D:\GCY-program\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\Hook.js:154:20)
[HBuilder] 18:03:54.900 at emitRecords.err (D:\GCY-program\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compiler.js:261:22)
[HBuilder] 18:03:54.900 at Compiler.emitRecords (D:\GCY-program\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compiler.js:375:39)
[HBuilder] 18:03:54.901 at emitAssets.err (D:\GCY-program\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compiler.js:255:10)
[HBuilder] 18:03:54.902 at hooks.afterEmit.callAsync.err (D:\GCY-program\HBuilderX\plugins\uniapp-cli\node_modules\webpack\lib\Compiler.js:361:14)
[HBuilder] 18:03:54.903 at _err0 (eval at create (D:\GCY-program\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), :20:1)
[HBuilder] 18:03:54.905 at callback (D:\GCY-program\HBuilderX\plugins\uniapp-cli\node_modules\copy-webpack-plugin\dist\index.js:126:17)
[HBuilder] 18:03:54.906 at afterEmit (D:\GCY-program\HBuilderX\plugins\uniapp-cli\node_modules\copy-webpack-plugin\dist\index.js:220:13)
[HBuilder] 18:03:54.907 at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\GCY-program\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:32:10), :7:1)
[HBuilder] 18:03:54.908 [ERROR] 读取app.json失败...

0 关注 分享

要回复文章请先登录注册