-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
Maximum call stack size exceeded #438
Comments
What combo of RN and SB are you using? Are you using hermes as JS engine (I've had stack size issues with that one before)? |
Thanks for the quick reply Joel! We're using react-native 0.70.6. We've managed to work around the error by changing the setting return withNxMetro(
{
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}), |
Yeah, what I found that was particularly troublesome with storybook and Hermes was the |
Some early findings, I couldn't get anything basic working without applying this: storybookjs/react-native#405 (comment) |
I'm trying to get loki running in a react-native solution (based on nx) that uses TypeScript.
My starting state is that I have a working Storybook. The http://localhost:7007 site is working and controlling the stories rendered in the ios emulator.
So, first of all, I'm doing manual configuration because
loki init
wants to update a JavaScript filestorybook.js
, but I only have TypeScript files. But as far as I can see, the important things thatloki init
does is to add a config to thepackage.json
and animport 'loki/configure-react-native';
to thestorybook.js
, so I've inserted the latter manually into mystorybook.ts
file.But after adding
import 'loki/configure-react-native';
, I get an infinite call loop on startup:It seems to be specifically the
import 'loki/configure-react-native';
statement that is causing problems. If I remove it, everything works as usual.This is our
storybook.ts
content(btw,
enableWebsockets
was important to get the connection to the storybook website working):Here is a fragment of
package.json
that might be relevant:Other versions:
node 16.17.0
macOS Ventura 13.2.1
XCode 14.2
The text was updated successfully, but these errors were encountered: