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

[BUG] 已知问题:TypeScript的emitDecoratorMetadata似乎不工作 #1

Open
Groupguanfang opened this issue Aug 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Groupguanfang
Copy link
Collaborator

如题所示

{
  "compilerOptions": {
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true
  }
}

此项目的tsconfig.json已经设置了"emitDecoratorMetadata": true,而且cli创建的测试项目也设置了"emitDecoratorMetadata": true;但是仍然不生效,无法获取到design:type等元数据。

怀疑是zhin主包编译时没有读取tsconfig.json文件。

@lc-cn 能否来解答一下?怀疑是esbuild有相关的配置。但是我不太了解esbuild,,,((滑稽)嘿嘿嘿

@Groupguanfang Groupguanfang added the bug Something isn't working label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant