Open jamessawyer opened 1 year ago
I encountered the same problem,then I use 'pinia-plugin-persistedstate' instead
I encountered the same problem,then I use 'pinia-plugin-persistedstate' instead
If I mitigate to 'pinia-plugin-persistedstate' lib, anything should pay attention to? @Tricker39
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