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
next.js 11.1.0 support #597
Comments
Same problem here |
Downgrading next to 11.0.1 fixed the issue for me, use |
Same issue here - https://github.com/Kentico/kontent-starter-corporate-next-js/pull/51 |
I've run into this in the past when a library needed by the bundler wasn't included. The temporary hack was to install the missing package into your |
hey all, thanks for the info! just came back from PTO and will try to look into this asap. stay tuned! |
hello again! i believe adding esbuild as your node_bundler in your netlfy.toml (see docs here https://docs.netlify.com/configure-builds/file-based-configuration/#functions) should solve this issue. please let us know! |
Thanks for the answer! This solved the problem, I tested the site and did not notice any errors. The only thing in the log was a few warnings:
|
@grind-t yeaaah, thanks for calling that out. please add |
Hmm, all warnings are gone, but the site crashes with the following error:
I will try all combinations of external modules, maybe I can find the one that is causing the crash. |
"next" cause crashes |
@lindsaylevine Unfortunately no, I need to use the firebase compat library for the firebase ui. It doesn't work with target: serverless for some reason 😅 |
@lindsaylevine firebase 9 has recently been released, so I think this problem should go away soon, because target: serverless only doesn't work with firebase 8 and firebase/compat as far as I know. |
@grind-t gotcha. did you see my teammate's comments though? #607 (comment) if you remove |
@lindsaylevine Yes, my netlify.toml file now looks like this::
It works fine with next.js 11.1.0 and target: experimental-serverless-trace |
@grind-t it doesn't throw a warning about we have a PR open for adding @babel/core so esbuild wont be required for 11.1.0 once that's out |
After upgrading to version 11.1.0, when packaging the Netlify function for the Next.js page, a dependency installation error occurs (cannot find module '@babel/core').
Log:
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: