Fablext
Fablext
  • 发布:2023-04-21 11:46
  • 更新:2023-04-21 11:55
  • 阅读:194

uniapp 使用小程序发券插件pages.json文件解析异常

分类:uni-app

11:38:40.382 SyntaxError: Unexpected token
in JSON at position 15185
11:38:40.389 at JSON.parse (<anonymous>)
11:38:40.389 at getRouteFileMatchRegAll (D:\App\node_modules\uniapp-router-view-loader\dist\plugins\index.js:95:50)
11:38:40.397 at getConfigure (D:\App\node_modules\uniapp-router-view-loader\dist\plugins\index.js:427:34)
11:38:40.398 at Object.index (D:\App\node_modules\uniapp-router-view-loader\dist\plugins\index.js:475:46)
11:38:40.401 at LOADER_EXECUTION (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:119:14)
11:38:40.402 at runSyncOrAsync (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:120:4)
11:38:40.411 at iterateNormalLoaders (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
11:38:40.411 at Array.<anonymous> (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
11:38:40.416 at Storage.finished (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
11:38:40.417 at D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
11:38:40.422 at D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\graceful-fs\graceful-fs.js:123:16
11:38:40.422 at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
11:38:43.747 Module build failed (from D:/App/node_modules/uniapp-router-view-loader/dist/plugins/index.js):
11:38:43.747 Error: [uniapp-router-view-loader]:pages.json文件解析异常, 请查看抛出的异常信息
11:38:43.759 at print (D:\App\node_modules\uniapp-router-view-loader\dist\plugins\index.js:303:19)
11:38:43.760 at getRouteFileMatchRegAll (D:\App\node_modules\uniapp-router-view-loader\dist\plugins\index.js:111:9)
11:38:43.767 at getConfigure (D:\App\node_modules\uniapp-router-view-loader\dist\plugins\index.js:427:34)
11:38:43.768 at Object.index (D:\App\node_modules\uniapp-router-view-loader\dist\plugins\index.js:475:46)

2023-04-21 11:46 负责人:无 分享
已邀请:
DCloud_UNI_WZF

DCloud_UNI_WZF

确认下 page.json 配置是否正常,新建默认模板项目增加配置是否正常?如确认框架问题,提供下测试工程,谢谢

  • Fablext (作者)

    应该是uniapp-router-view-loader这个插件的问题

    2023-04-21 11:58

要回复问题请先登录注册