vercel / next.js

The React Framework
https://nextjs.org
MIT License
127.01k stars 26.99k forks source link

Reflect-Metadata error when deploying to vercel #25887

Closed Milo123459 closed 3 years ago

Milo123459 commented 3 years ago

What version of Next.js are you using?

10.2.3

What version of Node.js are you using?

whatever vercel uses

What browser are you using?

Chrome

What operating system are you using?

Windows

How are you deploying your application?

Vercel

Describe the Bug

I get this:

10:06:31.645    /var/task/sandbox/index.js:77273
10:06:31.645        throw `tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.`;
10:06:31.645        ^
10:06:31.645    tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.
10:06:31.645    (Use `node --trace-uncaught ...` to show where the exception was thrown)
10:06:31.649    Sandbox exited with code 1 and signal null
10:06:32.101    /var/task/sandbox/index.js:77273
10:06:32.101        throw `tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.`;
10:06:32.101        ^
10:06:32.101    tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.
10:06:32.101    (Use `node --trace-uncaught ...` to show where the exception was thrown)

Expected Behavior

To Reproduce

don't know

Milo123459 commented 3 years ago

I just get this error and want to know how to fix it

Milo123459 commented 3 years ago

And I added import 'reflect-metadata' at the top of my _app.tsx

pbteja1998 commented 3 years ago

Same here. Just got this error after a new deployment.

clemgat33 commented 3 years ago

Same here, new deployment on Vercel, got this error

Milo123459 commented 3 years ago

Thankful it isn't me! If anyone has any info, please post it here.

awareness481 commented 3 years ago

This issue is probably related to https://twitter.com/vercel_status/status/1402195500107923457

As far as I can tell, everything should be working now. But FWIW, it's better to contact Vercel support directly or visit the @vercel_status twitter account for these kind of issues.

Milo123459 commented 3 years ago

I can't check twitter right now, what does that Tweet say? Will this be fixed over time?

pbteja1998 commented 3 years ago

Everything is working fine for me now.

balazsorban44 commented 2 years ago

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.