We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript Version: 3.2.0-dev.20181027
Search Terms: json isolatedModules, resolveJsonModule isolatedModules
json isolatedModules
resolveJsonModule isolatedModules
Code
import test from './test.json'
tsconfig.json:
tsconfig.json
{ "compilerOptions": { "target": "es5", "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "strict": true, "forceConsistentCasingInFileNames": true, "module": "esnext", "moduleResolution": "node", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, "jsx": "preserve" }, "include": [ "src" ] }
Expected behavior:
Imports JSON without any error.
Actual behavior:
TS1208: Cannot compile namespaces when the '--isolatedModules' flag is provided.
Playground Link: Could not find a playground that supports editing tsconfig.json, adding a json file and that would show tsc output
Related Issues: #15230, #18232, https://stackoverflow.com/q/52103265/2228575
The text was updated successfully, but these errors were encountered:
No branches or pull requests
TypeScript Version: 3.2.0-dev.20181027
Search Terms:
json isolatedModules
,resolveJsonModule isolatedModules
Code
tsconfig.json
:Expected behavior:
Imports JSON without any error.
Actual behavior:
TS1208: Cannot compile namespaces when the '--isolatedModules' flag is provided.
Playground Link: Could not find a playground that supports editing tsconfig.json, adding a json file and that would show tsc output
Related Issues: #15230, #18232, https://stackoverflow.com/q/52103265/2228575
The text was updated successfully, but these errors were encountered: