Skip to content

Vitest not working #21

@eliasbiagioninc

Description

@eliasbiagioninc

Trying to import a component, that use tn-models, in the test file gives this error.
image

After a research, I could find that .mjs files, must use file extensions when importing modules. Ie import Form, { FormField, FormArray } from './forms.js'; insted of import Form, { FormField, FormArray } from './forms'; . Even adding the file extensions, it appears more issues:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions