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

使用 swc 编译报 type 类型错误 #1094

Open
sbyps opened this issue Sep 26, 2024 · 2 comments
Open

使用 swc 编译报 type 类型错误 #1094

sbyps opened this issue Sep 26, 2024 · 2 comments

Comments

@sbyps
Copy link

sbyps commented Sep 26, 2024

https://swc.rs/docs/migrating-from-tsc#isolatedmodules-true

export.ts 中 export {default as Point, PointLike} from './core/Point';

PointLike 是一个 interface,应该是 export type { PointLike } from './core/Point';

@Jancheng-z
Copy link

Jancheng-z commented Sep 26, 2024 via email

@xumingwen
Copy link

xumingwen commented Nov 7, 2024

可以确认下lock文件中是否存在多个zrender版本?我们遇到类似的问题,lock文件中同时存在v5.6.0 和 v5.3.2,版本统一到5.6.0之后修复了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants