Property 'navigateTo' does not exist on type '{ $: ComponentInternalInstance; ..long type here
I have updated all of my dependencies today, and got this error from every auto import package
then I revert back to previous package.json file, even the package.json from 3 days ago, still got same error.
I have deleted the node_modules and bun.lockdb file too, no luck
1 Reply
here the dependencies
"devDependencies": {
"@mdi/js": "^7.4.47",
"@nuxtjs/device": "^3.1.1",
"@nuxtjs/robots": "4.0.2",
"@nuxtjs/seo": "2.0.0-rc.16",
"@nuxtjs/sitemap": "6.0.0-beta.1",
"@pinia-plugin-persistedstate/nuxt": "1.2.1",
"@pinia/nuxt": "0.5.2",
"@sidebase/nuxt-auth": "0.8.1",
"@types/bun": "1.1.6",
"@types/jsonwebtoken": "^9.0.6",
"@types/validator": "13.12.0",
"@vueuse/nuxt": "10.11.0",
"@zadigetvoltaire/nuxt-gtm": "^0.0.13",
"drizzle-kit": "0.23.1",
"express": "^4.19.2",
"nuxt": "^3.12.4",
"nuxt-cron": "1.6.0",
"nuxt-facebook-pixel-module": "^1.6.0",
"nuxt-gtag": "2.1.0",
"nuxt-icons": "^3.2.1",
"nuxt-mongoose": "^1.0.6",
"nuxt3-meta-pixel": "^1.0.9",
"sass": "1.77.8",
"sass-loader": "16.0.0",
"typescript": "5.5.4",
"vite-plugin-vuetify": "2.0.4",
"vite-svg-loader": "^5.1.0",
"vue": "3.4.35",
"vue-router": "4.4.2",
"vue-tsc": "2.0.29",
"vuetify": "3.6.14"
},
I reverted back to package.json from a week ago to, still no luck ..
maybe it's vscode related issue ?
here what I did so far, and it's very weird ..
I test other branch, which is from two weeks ago, the type error is gone.
then I copy the package.json from that branch to the main branch (which is the branch where the type error is happened), I still got the error (after deleting the node_modules & bun.lockdb, reload vscode, etc) ..
Ohh maybe it's the nuxt.config.json, then I copy it from the working branch, still got the error ..
Then maybe it's code related ?
what kind of code that can result of this type kind of error ?
I finally found the solution, which is super weird ..
I ended up copy both bun.lockdb & package.log from working branch to the main branch
then I updated all the dependencies again to the latest, still working fine ..
so the problem was the bun.lockdb ? bun related issue ?