Skip to content

"import Toggle from '@vueform/toggle'" makes error when building (Vue3 compositionAPI + Vite) #17

@popcari

Description

@popcari

image
I try to build my app using vue3+vite and I met the error:
error TS1192: Module '"/xxx/yyy/zzz/node_modules/@vueform/toggle/src/index"' has no default export.

104 import Toggle from "@vueform/toggle";
~~~~~~

node_modules/@vueform/toggle/src/index.d.ts:1:1
1 export * from './Toggle';
~~~~~~~~~~~~~~~~~~~~~~~~~
'export *' does not re-export a default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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