mondora / ddp.js

Isomorphic JavaScript DDP client
MIT License
207 stars 26 forks source link

Incompatible with Nativescript #18

Open dragGH102 opened 8 years ago

dragGH102 commented 8 years ago

I tried to install ddp.js various versions (0.50, 1.0.0, 1.1.0) but none of them work in Nativescript.

Specifically it reports

Error on line 121 - unexpected end of input

when imported by

  DDP = require('ddp.js')

Perhaps due to node.js dependencies?

pscanf commented 8 years ago

Sorry for the delay in replying to this issue.

Mmh, no idea. Unfortunately I haven't had the chance to test it with NativeScript. The upcoming 2.0.0 version changes how the library is distributed (as individuals modules in lib instead of a bundle in dist). Maybe that change will fix it.

Let me know.

vermiculite commented 8 years ago

Hi I am just trying this module with react native 22.2 and I had problems with babel. I resolved them with the following three installs from npm.

npm i -S babel-preset-es2015 npm i -S babel-preset-react npm i -S babel-stage-0

Hope that helps somebody.