You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
I created a new vue-ts project using pnpm create vite@latest my-app --template vue-ts, then I add pinia & pinia-plugin-persist deps。I set up typescript config by the doc, when i import pinia-plugin-persist, vscode will raise an error:
Could not find a delaration file for module pinia-plugin-persist.
There are types at '/xxx/my-app/node_modules/.pnpm/pinia-plugin-persist/dist/index.d.ts', but this result could not be resolved when respectiong package.json "exports". The 'pinia-plugin-persist' library may need to update its package.json or typings.
I created a new vue-ts project using
pnpm create vite@latest my-app --template vue-ts
, then I addpinia
&pinia-plugin-persist
deps。I set up typescript config by the doc, when i importpinia-plugin-persist
, vscode will raise an error:Here is my
tsconfig.json
file:To fix this bug, I have to change the config:
Please support typescript 5.0+!
May be this link clarifies the problem more clean: Add the types condition to the package.json#exports
The text was updated successfully, but these errors were encountered: