-
-
Notifications
You must be signed in to change notification settings - Fork 245
Pinia TS error #1085
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You must start pinia in a separate file and import it. ./stores/index.ts `import { createPinia } from 'pinia'; export const pinia = createPinia();` app.ts `... const app = createApp(App); |
Same result. You are just abstracting the variable. That will not have a different result.
|
They talk about server mode in replies. I don't know if it helps. |
I'm using it in my |
"nativescript-vue": "3.0.0-rc.2",
"ts-loader": "^9.5.1",
"typescript": "^5.5.4",
"eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-vue": "^9.27.0",
"@nativescript/android": "~8.7.0",
"@nativescript/eslint-plugin": "^0.0.4",
"@nativescript/ios": "~8.7.2",
"@nativescript-dom/core-types": "^1.0.29",
"@nativescript-dom/vue-types": "^1.0.15",
"tns-platform-declarations": "^6.5.15", |
Upgrading everything fixed the issue. Closing as the issue is outdated |
So, I have one branch that is working. Another branch with all deps updated. I can not point out which package is breaking. Initially thought it was but then there is this warning during WARN Issues with peer dependencies found
.
└─┬ pinia 2.1.7
└── ✕ unmet peer vue@"^2.6.14 || ^3.3.0": found 3.2.41
|
This issue happened when i upgraded and removed |
app.use(pinia)
gives me Typescript error.Code example:
Error:
The text was updated successfully, but these errors were encountered: