Skip to content
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

Vue recommends enabling isolatedModules, but tsconfig from create-vue doesn't #401

Closed
bmulholland opened this issue Dec 6, 2023 · 3 comments

Comments

@bmulholland
Copy link

See https://vuejs.org/guide/typescript/overview#configuring-tsconfig-json

Only reference to that config option in this repo is disabling it for Cypress

@cexbrayat
Copy link
Member

It does actually: the tsconfig file extends a base configuration:

"extends": "@vue/tsconfig/tsconfig.dom.json",

this is a dependency you have in your package.json, that you can check (or in this repo https://github.com/vuejs/tsconfig)

The base config does not use isolatedModules, but uses verbatimModuleSyntax which is a superset of isolatedModules (see microsoft/TypeScript#53601 (comment))

@cexbrayat cexbrayat closed this as not planned Won't fix, can't repro, duplicate, stale Dec 6, 2023
@bmulholland
Copy link
Author

Aha, thanks. FYI, I'd checked vue-tsc --showConfig before posting, but didn't know that verbatimModuleSyntax was a superset.

@bmulholland
Copy link
Author

The tsconfig settings (not this project... tsc world) are an absolute disaster, so hard to grok and debug.

NataliaTepluhina added a commit to vuejs/docs that referenced this issue Dec 6, 2023
…atedModules` (#2592)

* Note that verbatimModuleSyntax meets the suggested criteria for `isolatedModules`

See also vuejs/create-vue#401

* Update src/guide/typescript/overview.md

---------

Co-authored-by: Natalia Tepluhina <tarya.se@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants