Runtime error due to missing node_module on deployment

Hi everybody,

I am running into the same error that is being described in this previous post: BUG: Missing file from node_module

I have tried building npm run build and running locally npm run start using the default nextjs scripts. Everything works fine locally, but when I try to hit an endpoint on production (deployed via vercel), I get the following error:

[Error: ENOENT: no such file or directory, open 'node_modules/kuromoji/dict/base.dat.gz'] {
errno: -2,
code: 'ENOENT',

I noticed that the original discussion thread was closed due to inactivity, but hoping to get some help regarding this issue.

3 posts were merged into an existing topic: BUG: Missing file from node_module