在尝试使用uniapp转抖音小程序出现的问题
题目描述
在使用
uniapp
尝试跑项目时, 程序给我报出以下错误:14:17:54.103 ERROR TypeError: Path must be a string. Received undefined
14:17:54.125 TypeError: Path must be a string. Received undefined
14:17:54.125 at assertPath (path.js:28:11)
14:17:54.131 at Object.relative (path.js:1252:5)
14:17:54.132 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)
14:17:54.161 at Array.forEach (<anonymous>)
14:17:54.161 at generateComponent (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/plugin/generate-component.js:75:25)
14:17:54.184 at Promise (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/plugin/index-new.js:117:11)
14:17:54.184 at new Promise (<anonymous>)
14:17:54.206 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:103:16)
14:17:54.227 at _next1 (eval at create (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:17)
14:17:54.227 at _err1 (eval at create (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:26:1)
14:17:54.248 at Promise.all.catch.then (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/copy-webpack-plugin/dist/index.js:91:9)
14:17:54.249 at <anonymous>
题目来源及自己的思路
尝试过降低版本,以及项目包管理的重新配置
相关代码
尚未确定为题出现在哪里,无法给出代码
你期待的结果是什么?实际看到的错误信息又是什么?
希望有人能给予解答下,或者提供一条思路
以上是 在尝试使用uniapp转抖音小程序出现的问题 的全部内容, 来源链接: utcz.com/p/935437.html