Skip to content

typescript not resolving nuxt auto-imports in templates #1581

Closed
@ronrix

Description

@ronrix

Describe the bug
This is related to this issue, I'm getting typescript error when using auto-imported functions in templates.

To Reproduce
Example:

// utils 
export const isBool = () => true

// use it inside template
<template>
<div> is bool {{ isBool() }} </div>
</template>

error:
Vue: Property does not exist
image

Expected behavior
to resolve auto imported functions in templates

Versions
vue: 3.5.13
vue-apollo: 4.2.0
@apollo/client: 3.11.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions