Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

3.6.24之后版本,组件不在src目录下ts type报错 #15752

Closed
xiaof520 opened this issue May 20, 2024 · 4 comments
Closed

3.6.24之后版本,组件不在src目录下ts type报错 #15752

xiaof520 opened this issue May 20, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@xiaof520
Copy link
Contributor

这个特性解决了什么问题?

有没有配置可以自定义某些非src目录支持ts

这个 API 长什么样?

@taro-bot2 taro-bot2 bot added the enhancement New feature or request label May 20, 2024
@xiaof520
Copy link
Contributor Author

好像和pnpm workspace symlinks有关, ln -s 的文件夹有问题,,

@xiaof520
Copy link
Contributor Author

resolve symlinks: true 不知道是不是解析真实地址影响,pnpm workspace ln -s npm link 真实地址不在src下 ts type报错

@eiinu
Copy link
Contributor

eiinu commented May 20, 2024

同样的问题,通过 alias 配置引用了项目根目录以外的文件,在 dev 和 build 时都会报 ts 类型错误
3.6.24 正常,之后的版本出现了问题

@ZakaryCode
Copy link
Contributor

把文件加入到 tsconfig 的 include 内

@NervJS NervJS locked and limited conversation to collaborators May 20, 2024
@ZakaryCode ZakaryCode converted this issue into discussion #15753 May 20, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants