uni-app 编译头条小程序失败,出现TypeError:Path must be a string. Received undefined
uni-app 编译头条小程序失败,出现TypeError:Path must be a string. Received undefined
| 开发环境 | 版本号 | 项目创建方式 |
|----------|--------|--------------|
| Mac | Mac2020 | HBuilderX |
# 操作步骤:
ERROR TypeError: Path must be a string. Received undefined
17:39:36.188 TypeError: Path must be a string. Received undefined
17:39:36.188 at assertPath (path.js:28:11)
17:39:36.195 at Object.relative (path.js:1252:5)
17:39:36.195 at Object.keys.forEach.name (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/plugin/generate-component.js:158:52)
17:39:36.201 at Array.forEach (<anonymous>)
17:39:36.201 at generateComponent (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/plugin/generate-component.js:76:25)
17:39:36.209 at Promise (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/plugin/index-new.js:84:11)
17:39:36.210 at new Promise (<anonymous>)
17:39:36.217 at compiler.hooks.emit.tapPromise.compilation (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/plugin/index-new.js:72:16)
17:39:36.225 at _next1 (eval at create (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:17)
17:39:36.232 at _err1 (eval at create (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:26:1)
17:39:36.241 at Promise.all.catch.then (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/copy-webpack-plugin/dist/index.js:91:9)
17:39:36.241 at <anonymous>
## 预期结果:
编译成功
## 实际结果:
编译失败
ERROR TypeError: Path must be a string. Received undefined
17:39:36.188 TypeError: Path must be a string. Received undefined
## bug描述:
抖音小程序编译 失败

更多关于uni-app 编译头条小程序失败,出现TypeError:Path must be a string. Received undefined的实战教程也可以访问 https://www.itying.com/category-93-b0.html
更多关于uni-app 编译头条小程序失败,出现TypeError:Path must be a string. Received undefined的实战教程也可以访问 https://www.itying.com/category-93-b0.html
应该某种写法超出了编译器的预期,导致框架内部报错,麻烦示例工程提供一下