-
Notifications
You must be signed in to change notification settings - Fork 76
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
Typescript: error TS2315: Type 'Plugin' is not generic #550
Comments
@florian-lefebvre Could you check your package lockfile and see what version of |
@danielroe
I'm not using any generic version of the Plugin type. I don't know if it can help but here are my plugins: // i18n.ts
import { Context } from "@nuxt/types";
export default function({ store, app }: Context) {
// app.i18n.beforeLanguageSwitch = (oldLocale, newLocale) => {
// console.log(oldLocale, newLocale);
// };
app.i18n.onLanguageSwitched = (oldLocale, newLocale) => {
// console.log(oldLocale, newLocale);
store.commit("pinned/SET_CURRENT_LOCALE", { locale: newLocale });
};
} // vue-clipboard2.ts
import Vue from "vue";
import VueClipboard from "vue-clipboard2";
Vue.use(VueClipboard); // vue-country-flag.ts
import Vue from "vue";
import CountryFlag from "vue-country-flag";
Vue.component("country-flag", CountryFlag); |
They are not involved in the error: I disabled all the plugins and I still get the error. |
@florian-lefebvre Any chance you could create a reproduction? You might also try enabling |
Thanks, I'll check that. |
@danielroe I sent you a DM on Discord. |
skipLibCheck worked but still I'm curious to know where the error comes from |
@florian-lefebvre Thanks for pinging me your repo. It's because you have |
Thank you @danielroe! How can I fix that? |
@florian-lefebvre Just make sure to keep |
Okay, thanks a lot for your help! |
Similar issue: #28.
I updated my project to Typescript and now I'm getting errors during the build on Vercel:
I'm using
nuxt
2.15.4, so I don't have@nuxt/typescript-runtime
installed. Here are my files:vercel.json
nuxt.config.ts
package.json
The text was updated successfully, but these errors were encountered: