typescript - Muuttaa package.json Vercelin kautta?


Yritän julkaista portfoliotani Vercelillä, mutta julkaisuhetkellä saan virheen:

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.

Minulla oli tämä ongelma myös paikallisesti, mutta korjasin sen lisäämällä "types":"./dist/vue-i18n.d.ts" tiedostoon node_modules/vue-i18n/package.json

Kuitenkin en voi muokata tätä samaa tiedostoa Vercelin kautta, koska minulla ei ole hallintaa tähän. Mikä on ratkaisu?

Kiitos etukäteen