1***@qq.com
1***@qq.com
  • 发布:2021-02-19 14:55
  • 更新:2021-02-19 16:08
  • 阅读:1137

【报Bug】HBuilder新建空白项目,字节跳动小程序编译错误

分类:uni-app

产品分类: uniapp/小程序/字节跳动

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 3.1.2

第三方开发者工具版本号: 3.0.5

基础库版本号: 4.0.0-rc.16.ide

项目创建方式: HBuilderX

示例代码:

Uncaught NodeError: The "path" argument must be of type string. Received type object
at assertPath (path.js:39:11)
at Object.join (path.js:434:7)
at e.getCorePath (C:\Program Files\@bytedminiprogram-ide\resources\app\extensions\vela-extension\node_modules\@byted\miniprogram-simulator\public\shell\preload\bgWebviewPreload.js:2839:965)
at e.getCorePathByFile (C:\Program Files\@bytedminiprogram-ide\resources\app\extensions\vela-extension\node_modules\@byted\miniprogram-simulator\public\shell\preload\bgWebviewPreload.js:2839:1058)
at e.loadCorejs (C:\Program Files\@bytedminiprogram-ide\resources\app\extensions\vela-extension\node_modules\@byted\miniprogram-simulator\public\shell\preload\bgWebviewPreload.js:2843:1868)
at http://127.0.0.1:9000/shell/resources/web-service.html?uniqId=90003:8:34
internal/modules/cjs/loader.js:604 Uncaught Error: Cannot find module 'app.js'
at Module._resolveFilename (internal/modules/cjs/loader.js:602)
at Function.Module._resolveFilename (C:\Program Files\@bytedminiprogram-ide\resources\electron.asar\common\reset-search-paths.js:35)
at Function.Module._load (internal/modules/cjs/loader.js:528)
at Module.require (internal/modules/cjs/loader.js:658)
at require (internal/modules/cjs/helpers.js:20)
at eval (app-service.js:25)
at eval (<anonymous>)
at e.executeScriptSync (C:\Program Files\@bytedminiprogram-ide\resources\app\extensions\vela-extension\node_modules\@byted\miniprogram-simulator\public\shell\preload\bgWebviewPreload.js:2819)
at e.loadScriptSync (C:\Program Files\@bytedminiprogram-ide\resources\app\extensions\vela-extension\node_modules\@byted\miniprogram-simulator\public\shell\preload\bgWebviewPreload.js:2819)
at loadScript (C:\Program Files\@bytedminiprogram-ide\resources\app\extensions\vela-extension\node_modules\@byted\miniprogram-simulator\public\shell\preload\bgWebviewPreload.js:2843)
at <anonymous>:16:41
at WebFrame.(:9000/shell/resources/anonymous function) [as executeJavaScript] (C:\Program Files\@bytedminiprogram-ide\resources\electron.asar\renderer\api\web-frame.js:56:27)
at EventEmitter.electron.ipcRenderer.on (C:\Program Files\@bytedminiprogram-ide\resources\electron.asar\renderer\web-frame-init.js:36)
at EventEmitter.emit (events.js:182)

操作步骤:

编译到小程序

预期结果:

正常编译

实际结果:

Uncaught NodeError: The "path" argument must be of type string. Received type object
at assertPath (path.js:39:11)
at Object.join (path.js:434:7)
at e.getCorePath (C:\Program Files\@bytedminiprogram-ide\resources\app\extensions\vela-extension\node_modules\@byted\miniprogram-simulator\public\shell\preload\bgWebviewPreload.js:2839:965)
at e.getCorePathByFile (C:\Program Files\@bytedminiprogram-ide\resources\app\extensions\vela-extension\node_modules\@byted\miniprogram-simulator\public\shell\preload\bgWebviewPreload.js:2839:1058)
at e.loadCorejs (C:\Program Files\@bytedminiprogram-ide\resources\app\extensions\vela-extension\node_modules\@byted\miniprogram-simulator\public\shell\preload\bgWebviewPreload.js:2843:1868)
at http://127.0.0.1:9000/shell/resources/web-service.html?uniqId=90003:8:34
internal/modules/cjs/loader.js:604 Uncaught Error: Cannot find module 'app.js'
at Module._resolveFilename (internal/modules/cjs/loader.js:602)
at Function.Module._resolveFilename (C:\Program Files\@bytedminiprogram-ide\resources\electron.asar\common\reset-search-paths.js:35)
at Function.Module._load (internal/modules/cjs/loader.js:528)
at Module.require (internal/modules/cjs/loader.js:658)
at require (internal/modules/cjs/helpers.js:20)
at eval (app-service.js:25)
at eval (<anonymous>)
at e.executeScriptSync (C:\Program Files\@bytedminiprogram-ide\resources\app\extensions\vela-extension\node_modules\@byted\miniprogram-simulator\public\shell\preload\bgWebviewPreload.js:2819)
at e.loadScriptSync (C:\Program Files\@bytedminiprogram-ide\resources\app\extensions\vela-extension\node_modules\@byted\miniprogram-simulator\public\shell\preload\bgWebviewPreload.js:2819)
at loadScript (C:\Program Files\@bytedminiprogram-ide\resources\app\extensions\vela-extension\node_modules\@byted\miniprogram-simulator\public\shell\preload\bgWebviewPreload.js:2843)
at <anonymous>:16:41
at WebFrame.(:9000/shell/resources/anonymous function) [as executeJavaScript] (C:\Program Files\@bytedminiprogram-ide\resources\electron.asar\renderer\api\web-frame.js:56:27)
at EventEmitter.electron.ipcRenderer.on (C:\Program Files\@bytedminiprogram-ide\resources\electron.asar\renderer\web-frame-init.js:36)
at EventEmitter.emit (events.js:182)

bug描述:

HBuilder新建空白项目,字节跳动小程序编译错误,百度,微信小程序正常编译

2021-02-19 14:55 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com (作者)

报错: canmot get /core/null/]page-frame.html

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