Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asteroid 2.0 Babel Preset Problem on React Native #90

Open
radiegtya opened this issue Feb 18, 2016 · 3 comments
Open

Asteroid 2.0 Babel Preset Problem on React Native #90

radiegtya opened this issue Feb 18, 2016 · 3 comments

Comments

@radiegtya
Copy link

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
Copy link
Author

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

@radiegtya radiegtya changed the title Asteroid 2.0 Babel Preset Problem Asteroid 2.0 Babel Preset Problem on React Native Feb 18, 2016
@davidebianchi davidebianchi mentioned this issue May 20, 2016
3 tasks
@octohedron
Copy link

Anyone managed to fix this?

@davidebianchi
Copy link
Contributor

Hi @octohedron,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants