baidu / baidu/wx2

wx2转换微信小程序代码运行失败

Open
#7 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
118
Forks
16
PR merge metrics
No merged PRs in 30d

Description

小程序打包好的目录:
dist_weapp

执行命令
```
➜ sanqi_weapp git:(feature/tt) wx2 ./dist_weapp ./dist_swan --target=swan
🎉 Transforming ...
🎉 文件转换进度 : 100.00% ██████████████████████████████ 1/1
🎉 Ok, check transform log in wx2_log/
➜ sanqi_weapp git:(feature/tt) ✗ wx2 ./dist_weapp ./dist_swan --target=swan
🎉 Transforming ...
🎉 文件转换进度 : 100.00% ██████████████████████████████ 197/197
🎉 Ok, check transform log in wx2_log/
```

打开百度小程序运行结果多处报错:

![image](https://user-images.githubusercontent.com/35824900/101283593-5287ce80-3816-11eb-9b95-d7834a0095ad.png)

![image](https://user-images.githubusercontent.com/35824900/101283597-59aedc80-3816-11eb-8d5b-7e50ca65ace3.png)

请问这是什么报错,我要如何解决??

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with wx2 ./dist_weapp ./dist_swan --target=swan and inspect the wx2_log/ output alongside the generated dist_swan directory. Use the reported Baidu mini-program errors to identify which transformations fail; done means the converted output runs without those reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.