-
Notifications
You must be signed in to change notification settings - Fork 26
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
tsconfig v0.5 regression with json imports #27
Comments
haoqunjiang
added a commit
that referenced
this issue
Dec 18, 2023
The direct cause is
I'll see if it's a TS bug or if we can work around it in another way. |
haoqunjiang
added a commit
to vuejs/create-vue
that referenced
this issue
Dec 20, 2023
To avoid polluting the root directory with tsconfig.*.tsbuildinfo files. `outDir` in the base config doesn't work because of vuejs/tsconfig#27 (comment) Besides, we need this explicit config in `tsconfig.node.json` anyways, as it doesn't extend from `@vue/tsconfig`. Using `.tmp` instead of `.cache` here to better indicate the purpose.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let's say a file contains a JSON import:
then the
type-check
throws with:Reverting to v0.4 makes the error go away.
See https://stackblitz.com/edit/github-nzwcnu?file=src%2Fi18n.ts for a small repro
Run
npm i
andnpm run type-check
The text was updated successfully, but these errors were encountered: