-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Build issue: Node's own modules are being transpiled, which results in a broken build #331
Comments
Hi @awthwathje, sorry for the delay in getting back to you, did you manage to get this working at all? We've had problems with Next plugins in the past: #258 Basically, the whole NextJS ecosystem assumes a full NodeJS runtime, so plugins are usually incompatible with FABs. In this case I think we do need to compile How easy is this to reproduce? Does it occur as soon as you spin up a fresh NextJS app and add |
I spent a few hours today trying to get
I ended up giving up on dynamic nextjs 😅, and instead will be just writing dynamic behaviours into custom FAB plugins, because my |
No, I didn't and the Auth0 SDK had changed recently, and this particular issue is gone now. But it depends on Node.js API and since Workers aren't yet Node.js-compatible, I'm looking for another server-side auth integration. |
Hello, I'm using Next.js with Auth0 integration and its
@auth0/nextjs-auth0
package depends onjose
v1. This has an unfortunate side effect of FAB not being able to produce a working build.That is,
yarn next build && yarn next start
works fine, whereasyarn next build && yarn fab build && yarn fab serve
fails withTypeError: getCurves is not a function
error.This is a known issue with
jose
v1, and its maintainer says:and
panva/jose#93 (comment), panva/jose#72 (comment).
Which leads me to an assumption. that FAB transpiles Node's own modules during the build, which in some cases is not desirable (I use Node 15.5.1).
Any chance to look into this? Since Next.js' own builder doesn't seem to have this issue, maybe some hints could be taken from it.
The text was updated successfully, but these errors were encountered: