Open Matthcw opened 5 years ago
Hi @Matthcw , looks like an error build grpc
as a native module.
Are you able to share the complete logs in a https://gist.github.com , for example? This log is missing the actual build errors from compilation.
One likely suspect is that you might need to update to node 10 in the development machine so that nodejs-mobile-gyp
has all the variables it needs.
Hi @jaimecbernardo you can find the logs here: https://gist.github.com/Matthcw/b3e812ecbdbcde58838bbb12e86c2a77
Hi @Matthcw ,
Couldn't find anything useful in the logs, since it doesn't seem to be outputting compilor errors in your case.
I've tried adding firebase 6.3.0 and got it to build by making the change described here to grpc: https://github.com/JaneaSystems/nodejs-mobile-module-compat/issues/2#issuecomment-489628233
In my case, I got this error in the output:
error: unknown warning option '-Wno-cast-function-type'; did you mean '-Wno-bad-function-cast'? [-Werror,-Wunknown-warning-option]
make: *** [Release/obj.target/grpc_node/ext/byte_buffer.o] Error 1
Please give it a try. I'd also advise updating the development node to version 10 in case this doesn't work.
Project: nodejs-mobile-react-native Version: 1.14.1 Mobile device: N/A Mobile OS and version: N/A Development Node.js: v8.10.0 Development platform: Linux mpsm-lt 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
I'm using nodejs-mobile-react-native in react native, and it works fine.
But when I want to
npm install firebase --save
in the nodejs-assets/nodejs-project/ I get the following error:log: