-
Notifications
You must be signed in to change notification settings - Fork 183
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
Automatic inclusion of package.json
breaks Next SSG
#625
Comments
Hey @satya164, thanks for the quick release! I tested it and unfortunately the inclusion of Also, using the following config: {
"source": "src",
"output": "lib",
"targets": [
[
"module",
{
"esm": true
}
],
"typescript"
]
} results in the same error as in the original issue. |
@tjzel seems like this is a NextJS bug :< |
When ESM option is enabled, afaik it's necessary to use |
I replaced all uses of Thank you for the |
…der-bob` (#6494) ## Summary Without this fix our Next example breaks. You can read more in the [open issue](callstack/react-native-builder-bob#625). ## Test plan - Next GitHub actions pass
Description
After bumping
react-native-builder-bob
in Reanimated monorepo, our example app using Next stopped building with a very obscure error.Errors screenshots
Obviously this file doesn't have any instances of
global
and it worked well before the bump.After investigation turns out the culprit is enforced addition of
package.json
into the build directory added inI don't exactly understand why is that causing the error, especially that the error message and the callstack itself don't provide any useful information.
Packages
Selected options
Link to repro
https://github.com/software-mansion/react-native-reanimated/tree/main/apps/next-example
Environment
Irrelevant, since it breaks in GitHub actions as well.
The text was updated successfully, but these errors were encountered: