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
When I try to import .json files into .vue files with declared JSON file data as a module, vue-tsc doesn't understand the type of data being exported
.json
.vue
Here is my TypeScript config:
{ "compilerOptions": { "types": ["node"], "forceConsistentCasingInFileNames": true, "importsNotUsedAsValues": "error", "moduleResolution": "nodenext", "preserveValueImports": true, "resolveJsonModule": true, "isolatedModules": true, "esModuleInterop": true, "skipLibCheck": true, "module": "esnext", "target": "es2020", "jsx": "preserve", "allowJs": true, "strict": true, "baseUrl": ".", "noEmit": true, } }
Also I have "type": "module" in my package.json file. My vue-tsc version is 0.40.13.
"type": "module"
package.json
vue-tsc
The text was updated successfully, but these errors were encountered:
bde3755
fix: template context types broken with "moduleResolution": "nodenext"
"moduleResolution": "nodenext"
650bf0c
close #1862
Thanks!
Sorry, something went wrong.
Looks like the problem persists in v1.0.0-alpha.5
@azat-io could you provide minimal reproduction?
No branches or pull requests
When I try to import
.json
files into.vue
files with declared JSON file data as a module, vue-tsc doesn't understand the type of data being exportedHere is my TypeScript config:
Also I have
"type": "module"
in mypackage.json
file. Myvue-tsc
version is 0.40.13.The text was updated successfully, but these errors were encountered: