realm-js icon indicating copy to clipboard operation
realm-js copied to clipboard

NFR: Create own NPM package for react-native

Open ovr opened this issue 7 years ago • 6 comments

Hey!

Goals

For now, realm-js ships with module for node and react-native

It's rly awfull, because it's not possible to install react-native package without it

1. Unable to install with latest node

Let's take an example, I am using node 10+ and react-native, I am not able to install latest package for rn only because I will get a lof of errors because node module didnt support latest node.

2. Take time to compile/recompile

Expected Results

Have 2 packages

realm-js realm-react-native

Thanks

ovr avatar Jul 07 '18 10:07 ovr

I understand your pain on this. We have one package only as it simplifies many things. The downside is that we force you to use a version of node that we support.

As a workaround, have you tried to install Realm using npm install --ignore-scripts?

kneth avatar Jul 09 '18 08:07 kneth

As a workaround, have you tried to install Realm using npm install --ignore-scripts

This helps, but this will ingore all scripts :D It's not a solution :(

ovr avatar Aug 05 '18 10:08 ovr

The short term workaround is to use a supported node version when working with your RN app. Mid term, we will support node 10.

kneth avatar Aug 06 '18 11:08 kneth

Node 10 is now supported. Closing.

bmunkholm avatar Aug 19 '19 09:08 bmunkholm

@bmunkholm This issue is not about NPM, why did you close it?

It's architecture issue as NFR

ovr avatar Aug 19 '19 09:08 ovr

@ovr Ah sorry - I was too fast there.

bmunkholm avatar Aug 19 '19 09:08 bmunkholm