vuejs / pinia

🍍 Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support
https://pinia.vuejs.org
MIT License
12.72k stars 996 forks source link

The inferred type of 'default' cannot be named without a reference to '.pnpm/pinia@2.1.6_typescript@5.1.6_vue@3.3.4/node_modules/pinia'. This is likely not portable. A type annotation is necessary.ts(2742) #2629

Closed liqicode closed 3 months ago

liqicode commented 3 months ago

Reproduction

Reproduction a look and the issue

Steps to reproduce the bug

  1. The inferred type of 'default' cannot be named without a reference to '.pnpm/pinia@2.1.6_typescript@5.1.6_vue@3.3.4/node_modules/pinia'. This is likely not portable. A type annotation is necessary.ts(2742)

Expected behavior

typescript check hint

Actual behavior

typescript check hint

Additional information

No response

liqicode commented 3 months ago
image

Grammar prompt, but working properly