-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
isolatedModules option is not work in ^5.0.0 version #53683
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
Comments
andrewbranch
added
Working as Intended
The behavior described is the intended behavior; this is not a bug
and removed
Bug
A bug in TypeScript
labels
Apr 6, 2023
@andrewbranch Somewhat related, is there a way to get TS to treat all files as modules regardless of whether they contain imports/exports or not? Or does |
|
This issue has been marked 'Working as Intended' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
π Search Terms
isolatedModules
π Version & Regression Information
This changed between versions 4.9.5 and 5.0.3
β― Playground Link
https://www.typescriptlang.org/play?isolatedModules=true#code/PTAEEsGcHsBsEMAuBTAJgWWqgrrZlRoAHRcaAO1EmUVAHJEAnbZOgKBFHnNVHOlDIAHkWiNaYiAFtR40AGtkATwDuY1BzAAjbLW5LBjRpP56iRZPEabQASQBmoJdGygAxgAtuAc2ShEHn4AbsiMkGSUiAIALAB0AJyxAKwANP6BkYGGxoygKuCwsFzmlrkqyIVsbG4UkLQodaAAvPQNiHQA3FX22ORupBSg9uQAFACUoADeAL5AA
π» Code
tsconfig.json
index.ts
isolatedModules option set 'true'
and this code has no export or import keyword
but any error not appear
π Actual behavior
it seems in 4.9.5 isolatedModules option work
but in 5.0.3 isolatedModules option not work
π Expected behavior
I think the error should occur in 5.0.3, just like 4.9.5
The text was updated successfully, but these errors were encountered: