重新运行
- 发布:2023-05-21 22:13
- 更新:2023-05-21 22:13
- 阅读:275
产品分类: uniapp/小程序/字节跳动
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win 10
HBuilderX类型: 正式
HBuilderX版本号: 3.7.11
第三方开发者工具版本号: V4.0.7-1
基础库版本号: V4.0.7-1
项目创建方式: HBuilderX
操作步骤:
预期结果:
代码不报错
代码不报错
实际结果:
代码报错
代码报错
bug描述:
运行头条小程序报错
ERROR TypeError [ERR_INVALID_ARG_TYPE]: The "to" argument must be of type string. Received undefined
ERROR TypeError [ERR_INVALID_ARG_TYPE]: The "to" argument must be of type string. Received undefined
22:09:47.694 TypeError: The "to" argument must be of type string. Received undefined
22:09:47.696 at new NodeError (node:internal/errors:387:5)
22:09:47.696 at validateString (node:internal/validators:121:11)
22:09:47.697 at Object.relative (node:path:498:5)
22:09:47.698 at D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\plugin\mock-generic-component.js:22:50
22:09:47.699 at Array.forEach (<anonymous>)
22:09:47.701 at module.exports (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\plugin\mock-generic-component.js:12:27)
22:09:47.701 at processAssets (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\plugin\index-new.js:101:3)
22:09:47.704 at D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\webpack-uni-mp-loader\lib\plugin\index-new.js:121:73
22:09:47.705 at _next1 (eval at create (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:10:1)
22:09:47.707 at eval (eval at create (D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:25:1)
22:09:47.707 at D:\Program Files\HBuilderX\plugins\uniapp-cli\node_modules\copy-webpack-plugin\dist\index.js:91:9