Auto imported functions show type error in <template>
Hi there!
I've stumbled upon a weird issue where some of the auto imported functions are showing type errors in the
For example, the function
I am using the i18n module and when I remove it from nuxt config, the issue goes away.
I was able to reduce my project to the following:
package.json
nuxt.config.ts
app.vue
Could someone please help me debug it further? I'd like to create an issue but first I'd like to figure out whether this is a nuxt issue or whether to blame i18n for it.
I've stumbled upon a weird issue where some of the auto imported functions are showing type errors in the
<template> tag.For example, the function
withModifiers() from vue works correctly in the <script> tag, however, when I use it in the <template>, vue-tsc says that Property 'withModifiers' does not exist on type 'CreateComponentPublicInstance<Readonly<ExtractPropTypes<{}>>...I am using the i18n module and when I remove it from nuxt config, the issue goes away.
I was able to reduce my project to the following:
package.json
nuxt.config.ts
app.vue
Could someone please help me debug it further? I'd like to create an issue but first I'd like to figure out whether this is a nuxt issue or whether to blame i18n for it.







