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

Adding MDC causes strictTemplates to not work #329

Open
MikeBellika opened this issue Jan 23, 2025 · 1 comment
Open

Adding MDC causes strictTemplates to not work #329

MikeBellika opened this issue Jan 23, 2025 · 1 comment

Comments

@MikeBellika
Copy link

I have enabled strictTemplates in my tsconfig, in order to get type errors when I use props/components that do no exist. After adding MDC to my project, this rule no longer works, so I don't get type errors when using non existing props.

Reproduction

I've made a repo with the bug. I'm using @vue-expect-error on a line that should give an error:

gh repo clone MikeBellika/mdc-strict-templates-repro && 
cd mdc-strict-templates-repro && 
pnpm i && 
npx nuxi typecheck .

I've also made a branch without MDC, where the line gives an error: https://github.com/MikeBellika/mdc-strict-templates-repro/tree/no-mdc

@MikeBellika
Copy link
Author

Doing some more research, it seems like strictTemplates works for non existing components but not non existing props.

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

1 participant