-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
monorepo项目和ts的declare语法一起用导致报错:ModuleParseError: Module parse failed #15763
Comments
taro-bot2
bot
added
F-vue3
Framework - Vue 3
T-weapp
Target - 编译到微信小程序
V-3
Version - 3.x
labels
May 22, 2024
#15753 (comment) |
可以了,加入include就没问题了 compile: {
include: [path.resolve(__dirname, "../../lib")], // 当前应用src目录以外的目录地址
}, |
This was referenced May 25, 2024
This was referenced May 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
复现仓库
https://github.com/Wyatex/taro-monorepo-bug.git
小程序基础库: -
使用框架: Vue 3
复现步骤
将应用和别的库放在一个monorepo项目里面,库或者应用写下ts的declare语句
期望结果
期望能正常编译
实际结果
编译失败,报错:
环境信息
补充信息
根据多次切换版本研究,在taro3.6.24及以下不会报错,3.6.25直到3.6.30都会报这个错
The text was updated successfully, but these errors were encountered: