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
// ~/app.vue<scriptsetuplang="ts">useNuxtApp().$aaa();// $aaa is unknown</script><template></template>
In ~/.nuxt/types/plugins.d.ts NuxtAppInjections is any (because one of the unions is any):
typeNuxtAppInjections=InjectionType<typeofimport("../../node_modules/.pnpm/nuxt@3.12.4_@parcel+watcher@2.4.1_@types+node@20.14.11_ioredis@5.4.1_magicast@0.3.4_rollup@4._lljhbfrgkudpe6zumtjkp3yzvi/node_modules/nuxt/dist/app/plugins/navigation-repaint.client").default>&InjectionType<typeofimport("../../node_modules/.pnpm/nuxt@3.12.4_@parcel+watcher@2.4.1_@types+node@20.14.11_ioredis@5.4.1_magicast@0.3.4_rollup@4._lljhbfrgkudpe6zumtjkp3yzvi/node_modules/nuxt/dist/app/plugins/check-outdated-build.client").default>&InjectionType<typeofimport("../../node_modules/.pnpm/nuxt@3.12.4_@parcel+watcher@2.4.1_@types+node@20.14.11_ioredis@5.4.1_magicast@0.3.4_rollup@4._lljhbfrgkudpe6zumtjkp3yzvi/node_modules/nuxt/dist/app/plugins/revive-payload.server").default>&InjectionType<typeofimport("../../node_modules/.pnpm/nuxt@3.12.4_@parcel+watcher@2.4.1_@types+node@20.14.11_ioredis@5.4.1_magicast@0.3.4_rollup@4._lljhbfrgkudpe6zumtjkp3yzvi/node_modules/nuxt/dist/app/plugins/revive-payload.client").default>&InjectionType<typeofimport("../../node_modules/.pnpm/nuxt@3.12.4_@parcel+watcher@2.4.1_@types+node@20.14.11_ioredis@5.4.1_magicast@0.3.4_rollup@4._lljhbfrgkudpe6zumtjkp3yzvi/node_modules/nuxt/dist/app/plugins/chunk-reload.client").default>&InjectionType<typeofimport("../../node_modules/.pnpm/nuxt@3.12.4_@parcel+watcher@2.4.1_@types+node@20.14.11_ioredis@5.4.1_magicast@0.3.4_rollup@4._lljhbfrgkudpe6zumtjkp3yzvi/node_modules/nuxt/dist/head/runtime/plugins/unhead").default>&InjectionType<typeofimport("../../node_modules/.pnpm/nuxt@3.12.4_@parcel+watcher@2.4.1_@types+node@20.14.11_ioredis@5.4.1_magicast@0.3.4_rollup@4._lljhbfrgkudpe6zumtjkp3yzvi/node_modules/nuxt/dist/app/plugins/router").default>&InjectionType<typeofimport("../../node_modules/.pnpm/@nuxt+devtools@1.3.9_rollup@4.19.0_vite@5.3.4_@types+node@20.14.11_terser@5.31.3_/node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.server").default>&InjectionType<typeofimport("../../node_modules/.pnpm/@nuxt+devtools@1.3.9_rollup@4.19.0_vite@5.3.4_@types+node@20.14.11_terser@5.31.3_/node_modules/@nuxt/devtools/dist/runtime/plugins/devtools.client").default>&// this one below is anyInjectionType<typeofimport("../../node_modules/.pnpm/@nuxt+icon@1.3.0_magicast@0.3.4_rollup@4.19.0_vite@5.3.4_@types+node@20.14.11_terser@5.31.3__vue@3.4.33/node_modules/@nuxt/icon/dist/runtime/plugin").default/* <-- 'default' is any */>&InjectionType<typeofimport("../../node_modules/.pnpm/nuxt@3.12.4_@parcel+watcher@2.4.1_@types+node@20.14.11_ioredis@5.4.1_magicast@0.3.4_rollup@4._lljhbfrgkudpe6zumtjkp3yzvi/node_modules/nuxt/dist/app/plugins/dev-server-logs").default>&InjectionType<typeofimport("../../node_modules/.pnpm/nuxt@3.12.4_@parcel+watcher@2.4.1_@types+node@20.14.11_ioredis@5.4.1_magicast@0.3.4_rollup@4._lljhbfrgkudpe6zumtjkp3yzvi/node_modules/nuxt/dist/app/plugins/check-if-layout-used").default>&InjectionType<typeofimport("../../plugins/test").default>
The file node_modules/@nuxt/icon/dist/runtime/plugin.d.ts is empty.
If you create a plugin and provide some functions, these functions are not typed if nuxt/icon is installed.
In
~/.nuxt/types/plugins.d.ts
NuxtAppInjections is any (because one of the unions is any):The file
node_modules/@nuxt/icon/dist/runtime/plugin.d.ts
is empty.Reproduction:
https://stackblitz.com/edit/github-upzndu?file=plugins%2Ftest.ts,app.vue (stackblitz's types don't work in .vue files, test it in local)
The text was updated successfully, but these errors were encountered: