typescript - package.json wijzigen via Vercel?
Ik probeer mijn portfolio met Vercel te deployen, maar ik krijg een fout bij het deployen:
src/components/header/ChangeLanguage.vue(12,25): error TS7016: Could not find a declaration file for module 'vue-i18n'. '/vercel/path0/node_modules/vue-i18n/dist/vue-i18n.esm-bundler.js' implicitly has an 'any' type. There are types at '/vercel/path0/node_modules/vue-i18n/dist/vue-i18n.d.ts', but this result could not be resolved when respecting package.json "exports". The 'vue-i18n' library may need to update its package.json or typings.Ik had dit probleem ook lokaal, maar ik heb het opgelost door "types":"./dist/vue-i18n.d.ts" toe te voegen in het node_modules/vue-i18n/package.json bestand
Ik kan ditzelfde bestand echter niet aanpassen via Vercel omdat ik hier geen controle over heb. Wat is de oplossing?
Alvast bedankt