While working with the world-countries package, I encountered an issue during deployment in Vercel. The error message indicated that a ';' was missing in the index.d.ts file of world-countries located in the node_module directory.
Here is the exact error from Vercel:
Failed to compile. ./node_modules/world-countries/index.d.ts:45:37 Type error: ';' expected. 43 | translations: { [languageCode: string]: OfficialAndCommon } 44 | latlng: [number, number]
45 | demonyms: { [languageCode: string]?: Demonyms } (this is the line that needs to be fixed) | ^ 46 | landlocked: boolean 47 | borders: string[] 48 | area: number
I attempted deleting the '?' as suggested and the issue resolved within the file itself, but unfortunately, Vercel did not accept these changes. I also tried reverting back to the previous method where demonym was defined as a string. Additionally, I experimented with different ways to bypass the error without success.
Despite my efforts, I have not been able to resolve this issue.