vinipachecov / react-native-typeorm-example

My tutorial and example of how to config typeorm with React-Native 0.60+
7 stars 2 forks source link

"Module fs is not recognized" - Node modules are pulled in by Metro Bundler using this Repo #4

Open husseinm opened 3 years ago

husseinm commented 3 years ago

I attempted both on my own repo as well as by simply cloning this repo.

I made very sure to use "typeorm/browser" as the import for everything, however, I am getting errors from Metro Bundler that since one of the lines of code uses the node "fs" module that "fs is not a recognized module"

It looks as though Metro is picking up dead code that uses fs/path for TypeORM.

What can I do to fix this?

vinipachecov commented 3 years ago

Looks like this is been tackled in this issue: https://github.com/typeorm/typeorm/issues/6739