-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpack 5, API functions and Vercel error #25431
Comments
This adds tracing entrypoints directly after they have have been transpiled to allow us to trace before the webpack runtime has been added to the modules. This should allow for more accurate tracing of entrypoints and allow the trace step to be cached. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added x-ref: vercel#24700 x-ref: vercel#26200 x-ref: vercel#23894 x-ref: vercel#25431
Hi, this has been updated and can now be tested in module.exports = {
experimental: {
nftTracing: true
}
} |
I can confirm that it's working like charm in a standard setup! 🎉 Having said that, we are using Sentry default integration (via Here's the modified config file in case it's useful for something. Do you happen to know if the error is on Next.js or Sentry side? |
I actually found this line of code in the mentioned PR that is using |
@ijjk works like charm, thanks so much! |
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. |
What version of Next.js are you using?
10.2.2
What version of Node.js are you using?
14
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
Vercel
Describe the Bug
What is happening?
As soon as we enable webpack5, some of our endpoints break.
Which endpoints?
Those that share using a function that uses
fs.readFile
. If it's a single endpoint using that function, it works just fine. As soon as we add a second endpoint, they both break.What's the error?
Where does this happen>?
This only happens on Vercel, it works fine locally while doing
next build && next start
.Expected Behavior
We should be able to enable webpack5 and not have endpoints breaking under the description listed above.
To Reproduce
Check it out this repo. Here are the two endpoints sharing a single external function.
Also, we have Vercel deployments to verify:
The text was updated successfully, but these errors were encountered: