transcranial / keras-js

Run Keras models in the browser, with GPU support using WebGL
https://transcranial.github.io/keras-js
MIT License
4.96k stars 503 forks source link

React Native (Node Standard Library) #105

Open ghost opened 6 years ago

ghost commented 6 years ago

React Native displays this error regarding Node Standard Library.. Any solution to this??

The package at "...\node_modules\keras-js\lib\Model.js" attempted to import the Node standard library module "fs". It failed because React Native does not include the Node standard library. Read more at https://docs.expo.io/versions/latest/introduction/faq.html#can-i-use-nodejs-packages-with-expo

ygorlazaro commented 6 years ago

This is not gonna work

jeffreyflynt commented 6 years ago

Try This to import node Standard libraries:

https://github.com/tradle/rn-nodeify