-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Flagpack not loading into NextJS #47
Comments
Hello! It seems that this error is also affecting Gatsby, which does not provide any way to call In the meantime, I am using patch-package to replace I think this change could easily be implemented without breaking the current setup, until an ESM build is made available. Have a nice day |
Hello, |
any update on this bug, the fix is simple |
It should be a great addition. Many of us are waiting to implement it with NextJS. |
https://github.com/mbale/react-flagpack There's a nextjs branch if you cannot wait for the PR. Tested with v12 and imported the esm build from dist directly |
@mbale Is this fix also compatible with other React platforms (SB, CRA, Next JS, etc.). If yes, could you maybe create a PR for this fix? Would be awesome 🙆♂️. |
still on it ? |
Is there any timeline on when this will be resolved? |
Same error |
Please check all that apply
Current Behavior
Currently the project doesn't work with NextJS. It does work however with a
create-react-app
.Possible Solution
type: "module"
from thepackage.json
also stops the project from crashing altogether, however the flag still doesn't render.Logs
Related to issues #46, #45
The text was updated successfully, but these errors were encountered: