mondora / asteroid

An alternative client for a Meteor backend
MIT License
734 stars 101 forks source link

Asteroid 2.0 Babel Preset Problem on React Native #90

Open radiegtya opened 8 years ago

radiegtya commented 8 years ago

First when I am including this code in my react-native apps, it said:

could not find babel-preset-2015

then I am installing babel-preset via npm and that error gone. But now I got another error

could not find preset "stage-0"

then I am installing babel-preset with npm install --save babel-preset-es2015 --stage 0. But still no luck.

Please Help

radiegtya commented 8 years ago

the error was gone when I am installing this dependencies:

"dependencies": {
    "0": "0.0.0",
    "asteroid": "^2.0.1",
    "babel-preset-es2015": "^6.5.0",
    "babel-preset-react": "^6.5.0",
    "babel-preset-stage-0": "^6.5.0",
    "react-native": "^0.20.0"
  }

But now another problem occurs

undefined is not an object (evaluating 'exports.EventEmitter')
on asteroid/node_modules/wolfy87-eventemitter/EventEmitter.js
octohedron commented 7 years ago

Anyone managed to fix this?

davidebianchi commented 7 years ago

Hi @octohedron,

have you tried to use version 3.0.0-alpha, or the fix proposed in the issue #100 ?