瀚海浪亭
瀚海浪亭
  • 发布:2023-03-16 16:01
  • 更新:2023-05-11 17:58
  • 阅读:325

【App打包】安卓ios基座打包,提示无法从项目加载vite.config.js

分类:uni-app

开发环境M1Max
Hbx版本3.7.3
vue版本:vue3

提示内容详见下图:

npx @dcloudio/uvm后的package.json

"dependencies": {  
        "@dcloudio/uni-app": "3.0.0-3070320230222002",  
        "@dcloudio/uni-app-plus": "3.0.0-3070320230222002",  
        "@dcloudio/uni-components": "3.0.0-3070320230222002",  
        "@dcloudio/uni-h5": "3.0.0-3070320230222002",  
        "@dcloudio/uni-mp-alipay": "3.0.0-3070320230222002",  
        "@dcloudio/uni-mp-baidu": "3.0.0-3070320230222002",  
        "@dcloudio/uni-mp-kuaishou": "3.0.0-3070320230222002",  
        "@dcloudio/uni-mp-lark": "3.0.0-3070320230222002",  
        "@dcloudio/uni-mp-qq": "3.0.0-3070320230222002",  
        "@dcloudio/uni-mp-toutiao": "3.0.0-3070320230222002",  
        "@dcloudio/uni-mp-weixin": "3.0.0-3070320230222002",  
        "@dcloudio/uni-quickapp-webview": "3.0.0-3070320230222002",  
        "@dcloudio/uni-vue-devtools": "3.0.0-3070320230222002",  
        "dayjs": "^1.11.5",  
        "echarts": "5.3.2",  
        "mitt": "^3.0.0",  
        "pinia": "^2.0.14",  
        "vue": "^3.2.45",  
        "vue-i18n": "^9.1.9"  
    },  
    "devDependencies": {  
        "@dcloudio/types": "^3.2.7",  
        "@dcloudio/uni-automator": "3.0.0-3070320230222002",  
        "@dcloudio/uni-cli-shared": "3.0.0-3070320230222002",  
        "@dcloudio/uni-helper-json": "^1.0.13",  
        "@dcloudio/uni-stacktracey": "3.0.0-3070320230222002",  
        "@dcloudio/vite-plugin-uni": "3.0.0-3070320230222002",  
        "@types/html5plus": "^1.0.2",  
        "@types/node": "^17.0.35",  
        "@types/uni-app": "^1.4.4",  
        "@uni-helper/uni-app-types": "^0.4.0",  
        "@uni-helper/uni-ui-types": "^0.4.0",  
        "autoprefixer": "10.4.7",  
        "postcss": "^8.1.0",  
        "sass": "^1.54.5",  
        "vite": "4.0.3"  
    },

日志已上传

2023-03-16 16:01 负责人:无 分享
已邀请:
q***@qq.com

q***@qq.com

这个问题有解决的么 用官网的项目包打wgt包也报这个错

q***@qq.com

q***@qq.com

npx @dcloudio/uvm 升级后就报错了 ,之前的老版本是好的,奇怪

  • dukai

    请问一下,你后面是怎么解决的呀

    2023-05-18 16:47

  • 9***@qq.com

    回复 dukai: 这个问题最后怎么解决的??

    2023-12-13 10:55

q***@qq.com

q***@qq.com

这个版本是好的 ,打包不会报错

"dependencies": {  
    "@dcloudio/uni-app": "3.0.0-3061820230117001",  
    "@dcloudio/uni-app-plus": "3.0.0-3061820230117001",  
    "@dcloudio/uni-components": "3.0.0-3061820230117001",  
    "@dcloudio/uni-h5": "3.0.0-3061820230117001",  
    "@dcloudio/uni-mp-alipay": "3.0.0-3061820230117001",  
    "@dcloudio/uni-mp-baidu": "3.0.0-3061820230117001",  
    "@dcloudio/uni-mp-kuaishou": "3.0.0-3061820230117001",  
    "@dcloudio/uni-mp-lark": "3.0.0-3061820230117001",  
    "@dcloudio/uni-mp-qq": "3.0.0-3061820230117001",  
    "@dcloudio/uni-mp-toutiao": "3.0.0-3061820230117001",  
    "@dcloudio/uni-mp-weixin": "3.0.0-3061820230117001",  
    "@dcloudio/uni-quickapp-webview": "3.0.0-3061820230117001",  
},  
"devDependencies": {  
    "@dcloudio/types": "3.2.7",  
    "@dcloudio/uni-automator": "3.0.0-3061820230117001",  
    "@dcloudio/uni-cli-shared": "3.0.0-3061820230117001",  
    "@dcloudio/uni-stacktracey": "3.0.0-3061820230117001",  
    "@dcloudio/vite-plugin-uni": "3.0.0-3061820230117001",  
    "@rushstack/eslint-patch": "^1.2.0",  
    "@types/crypto-js": "^4.1.1",  
    "@types/node": "^18.14.1",  
    "@typescript-eslint/eslint-plugin": "^5.53.0",  
    "@vue/eslint-config-prettier": "^7.1.0",  
    "@vue/eslint-config-typescript": "^11.0.2",  
    "@vue/tsconfig": "^0.1.3",  
}  

}

要回复问题请先登录注册