-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
resolveJsonModule with --module es2015
#26020
Comments
Looks like a duplicate of #25755 |
I filed a separate issue (and linked to the original one) since the other issue talks about amd. |
|
Me as well, I just want to TypeScript to load JSON and provide type intelligence to VSCode. That way TypeScript can enforce any code access of JSON object is valid. |
@gamedevsam the workaround would be to target CommonJS in the |
This is fixed in master. |
Related Issues
#25755, #24588
Examples
I'm using Typescript with rollup with https://github.com/rollup/rollup-plugin-json and with TS 2.9 everything worked fine. TS 3 disables JSON modules with everything other than commonjs modules. Could this be changed for es2015 modules?
The text was updated successfully, but these errors were encountered: