I got error about @swc/helpers when deploying on Vercel
Unanswered
Sloth bear posted this in #help-forum

Sloth bearOP
[Error: ENOENT: no such file or directory, lstat '/vercel/path0/node_modules/next/nodemodules/@swc/helpers//_interop_require_default/package.json'] {
errno: -2,
code: 'ENOENT',
syscall: 'lstat',
path: '/vercel/path0/node_modules/next/nodemodules/@swc/helpers//_interop_require_default/package.json'
errno: -2,
code: 'ENOENT',
syscall: 'lstat',
path: '/vercel/path0/node_modules/next/nodemodules/@swc/helpers//_interop_require_default/package.json'

5 Replies

Toyger

Sloth bearOP
Thanks for your response but i have try it still giving same error

building in local is working tho but vercel giving error

Toyger
what version of nextjs are you using? maybe it make sense to update to latest one and try with it

Sloth bearOP
Thanks i can fix it now