NuxtN
Nuxt16mo ago
25 replies
Reeed

vscode complains about auto imports

there is a
utils/index.ts
in my project, i know it would be auto imported into my vue components and it works fine, but the vscode would complain about it like this:
Property 'toLocal' does not exist on type 'CreateComponentPublicInstanceWithMixins<ToResolvedProps<{ course: CourseExt; }, {}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.

where
toLocal
is the helper function in the
utils/index.ts
file, how can i fix this?
Was this page helpful?