image.png
SyntaxError: Unexpected token 'export'
(env: macOS,mp,1.06.2208010; lib: 2.25.2)
SyntaxError: Cannot use import statement outside a module
(env: macOS,mp,1.06.2208010; lib: 2.25.2)
image.png
將JS編譯成ES5?
image.png
uniapp在manifest.json 中?
image.png
"lazyCodeLoading" : "requiredComponents", // 添加在manifest.json "mp-weixin" 下級 --uniapp 微信小程序原生放在app.json中 macos 上面的es5?就可以解決巫财,windows需要這樣改一下
已被代碼依賴分析忽略盗似,無法被其他模塊引用。你可根據(jù)控制臺中的【代碼依賴分析】告警信息修改代碼平项,或關(guān)閉【過濾無依賴文件】功能赫舒。
uniapp 在manifest.json中 "mp-weixin" -> "setting" 下級
"ignoreDevUnusedFiles" : false,
參考文章一
https://blog.csdn.net/weixin_58012451/article/details/124825315
參考文章二https://blog.csdn.net/zhenghhgz/article/details/125678359
hbuildx報(bào)錯(cuò) operation not permitted
把dist文件夾刪除重新生成
參考文章三
https://developers.weixin.qq.com/community/minihome/doc/0002ac27434928cf3e7bf20e651000