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

Cannot access ambient const enums when 'isolatedModules' is enabled. #797

Open
3 of 5 tasks
diegohaz opened this issue Oct 1, 2024 · 1 comment
Open
3 of 5 tasks

Comments

@diegohaz
Copy link

diegohaz commented Oct 1, 2024

Validations

Describe the bug

I believe there's a regression in v1.17.0 related to #172. TypeScript now shows an error when you try to use FontStyle.

isolatedModules is mandatory in certain projects, such as when using Next.js.

Reproduction

https://stackblitz.com/edit/vitejs-vite-s9iw1t?file=src%2Fcounter.ts%3AL3&terminal=dev

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@zhangmo8
Copy link

This seems to be a upstream TS problem

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

2 participants