shiki icon indicating copy to clipboard operation
shiki copied to clipboard

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

Open diegohaz opened this issue 1 year ago • 0 comments
trafficstars

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

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

diegohaz avatar Oct 01 '24 00:10 diegohaz