Skip to content

Cannot find module 'pinia-orm/decorators' or its corresponding type declarations.ts(2307) using Typescript #1774

@annymosse

Description

@annymosse

Environment

VSCode: 1.86.0
pinia: ^2.1.7
pinia-orm: ^1.7.2
typescript: ^5.3.3
vite: ^5.0.12
vite-plugin-vuetify: ^2.0.1
vue: ^3.4.15
vue-tsc: ^1.8.27

Reproduction

just follow the website 'https://pinia-orm.codedredd.de/guide/getting-started/typescript'

Describe the bug

as the title description, and when not using decorators and try to insert a new user as the docs there's no autocomplete unless export an interface describe the model fileds

Additional context

No response

Logs

No response

Edit: by checking the pinia-orm installed package I couldn't find any declarations folder/file except the dist folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions