amannn / next-intl

🌐 Internationalization (i18n) for Next.js
https://next-intl-docs.vercel.app
MIT License
2.58k stars 236 forks source link

When building the project, an error is reported: language key type error,version:3.19.0 #1310

Closed LiuCaptain closed 2 months ago

LiuCaptain commented 2 months ago

Description

First of all, I had no problems with local development and local building. The project started and packaged normally. The local packaging is as follows: image

But when I pushed the project to Vercel for packaging, a strange problem occurred, as shown below: image But my multi-language key exists normally: image So what is the problem?

Verifications

Mandatory reproduction URL

App Router

Reproduction description

When packaging and building on vercel, a strange type error occurs immediately

Expected behaviour

My code is developed and packaged normally locally, and I hope it can be packaged normally on Vercel.

amannn commented 2 months ago

I unfortunately also don't see any obvious pointers for the cause of the error.

This seems to be a usage question, I'll move this to a discussion …