uni-app 示例 微信小程序上传失败

pinkon5k  于 4个月前  发布在  uni-app
关注(0)|答案(3)|浏览(64)

问题描述
uni-app 示例 微信小程序上传失败

复现步骤
vue create -p dcloudio/uni-preset-vue my-project
Hello uni-app

实际结果
20003 Error:
``
{"errCode":-1,"errMsg":"inner upload fail with errcode: -80057, errmsg: invalid file: wxcomponents/vant/button/index.js, 1:6, SyntaxError: Unexpected token {import{VantComponent as o}from"../common/component";import{button as t}from"../mixins/button";import{openType as i}from"../mixins/open-type";o({mixins:[t,i],classes:["hover-class","loading-class"],data:{style:""},props:{icon:String,plain:Boolean,block:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,loadingText:String,customStyle:String,loadingType:{type:String,value:"circular"},type:{type:String,value:"default"},size:{type:String,value:"normal"},loadingSize:{type:String,value:"20px"},color:{type:String,observer(o){let t="";o&&(t+= color: ${this.data.plain?o:\"white\"}; ,this.data.plain||(t+=background: ${o};),-1!==o.indexOf("gradient")?t+="border: 0;":t+=border-color: ${o};),t!==this.data.style&&this.setData({style:t})}}},methods:{onClick(){this.data.disabled||this.data.loading||this.$emit("click")}}})
`

系统信息:
node: v16.18.1
npm: 8.19.2
@vue/cli 4.5.19

5kgi1eie

5kgi1eie1#

是不是选错目录了?选build后的目录

mwecs4sa

mwecs4sa2#

是不是选错目录了?选build后的目录
'/dist/build/mp-weixin'

oipij1gg

oipij1gg3#

是不是选错目录了?选build后的目录
'/dist/build/mp-weixin'

仅上传报错吗?开发工具内预览是否正常

相关问题