在尝试使用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>
题目来源及自己的思路
尝试过降低版本,以及项目包管理的重新配置
相关代码
尚未确定为题出现在哪里,无法给出代码
你期待的结果是什么?实际看到的错误信息又是什么?
希望有人能给予解答下,或者提供一条思路
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论