Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taro v3.0.7之后的版本,打包成头条或者支付宝小程序都会报错 #7775

Closed
git-guining opened this issue Sep 30, 2020 · 9 comments
Labels
F-vue2 Framework - Vue 2 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x

Comments

@git-guining
Copy link

相关平台

支付宝小程序

小程序基础库: 头条1.80.1.6 支付宝无
使用框架: Vue 2

复现步骤

npm run dev:tt或者npm run dev:alipay,会报
Error: ./comp.axml?hash=bb8b295024249ccbe94d8d9630088b07e56ab94c
Module build failed :
Error: comp.axml
Module build failed:
\base.wxml.axml not exists!

期望结果

打包编译后可以正常运行小程序,不报错

实际结果

打包编译后,头条和支付宝小程序无法运行

环境信息

👽 Taro v3.0.13


  Taro CLI 3.0.13 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.13.1 - D:\Program Files\nodejs\node.EXE
      Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.12.1 - D:\Program Files\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-vue2 Framework - Vue 2 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x labels Sep 30, 2020
@luckyadam
Copy link
Member

有没有示例项目看看

@git-guining
Copy link
Author

不好意思,公司的项目不好公开。你那边打包都正常吗。

@Chen-jj
Copy link
Contributor

Chen-jj commented Oct 9, 2020

@git-guining 重新安装依赖试试吧

@git-guining
Copy link
Author

重新安装依赖之后还是一样的。只有用3.0.7以及之前的版本打包不会出错,后面所有版本都会报错。

@Chen-jj
Copy link
Contributor

Chen-jj commented Oct 14, 2020

@git-guining 没有复现,估计是依赖问题,再检查下吧。

@Chen-jj Chen-jj closed this as completed Oct 14, 2020
@lightShowers
Copy link

你那是报的啥错 我这是3.0.16版本 打包之后 首页是 Welcome to MIni Program
1606189471(1)

@git-guining
Copy link
Author

我之前还是依赖的问题,目前已经没有打包的问题了

@YANGOSC
Copy link

YANGOSC commented Jul 19, 2021

楼主怎么解决的啊是哪个依赖产生这个问题啊,求说清楚

@git-guining
Copy link
Author

git-guining commented Jul 19, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue2 Framework - Vue 2 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

5 participants