-
Notifications
You must be signed in to change notification settings - Fork 23
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 exceeded when importing a node module #14
Comments
Ok, I so inserted console.log() in transformers.js just before the switch statement: try {
console.log(extension);
switch (extension) {
case '.js':
case '.jsx':
result = babelTransformer(src, filename);
break;
default:
result = babelTransformer(src, filename);
break;
}
} catch (e) {
throw new Error(e);
return;
} Then When I did transform[stdout]: .js
transform[stdout]: .js
transform[stdout]: .js
transform[stdout]: .js
transform[stdout]: .js
transform[stdout]: .js
transform[stdout]: .js
transform[stdout]: .js
transform[stdout]: .js and at one stage, it printed the following: Any ideas? |
@NaseebullahSafi sorry, can't help you.. i had too many issues with nativifying my large nodejs project.. no longer using it. instead running node on android directly on mobile in background thread, and react-native frontend ui :) |
Ah I see, It's OK. I'm kind of desperate at the moment, is there any tutorial on how to do it directly in android in the background thread? @aschrijver |
As in, what framework might you be using to host the nodejs in Android? and how do you link your nodejs in android to your react native? I'd really appreciate if you could create a README for this because the demand is actually high. @aschrijver |
I can give you some pointers. It has been some time ago that I was using this. Also running NodeJS on Android should be considered very experimental (and very interesting :D). First on ReactNativify I wrote a number of SO questions + answers:
I don't know if there is anything there for you.. you should investigate :) Then on running NodeJS on Android I wrote this article, that provides a summary of options.. the README :) |
This is such a big problem, because the reason why I need nodejs (or if there is an alternative) is so that I can be able to transfer data from a microcontroller to an android device. |
I'd like to import
openbci-cyton
module into my react native project. When I do so, it leads toI'm using ignite template. I call ReactNativeExamples in `App/containers/LaunchScreen.js
And heres the following files:
transformers.js
babal-transformer.js
node.js
cyton_example.js
And here's the full error:
The text was updated successfully, but these errors were encountered: