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

React-Native #100

Open
1 of 3 tasks
davidebianchi opened this issue May 20, 2016 · 3 comments
Open
1 of 3 tasks

React-Native #100

davidebianchi opened this issue May 20, 2016 · 3 comments

Comments

@davidebianchi
Copy link
Contributor

davidebianchi commented May 20, 2016

  • AsyncStorage in React Native is not global.

    Solution:

  • Error with node-haste persisting cache
    Error stack trace:

    [node-haste] Encountered an error while persisting cache:
    > Error: Couldn't find preset "es2015" relative to directory "[project_path]/node_modules/asteroid"
    

    and, after install babel-preset-es2015

    [node-haste] Encountered an error while persisting cache:
    > Error: Couldn't find preset "stage-0" relative to directory  "[project_path]/node_modules/asteroid"
    

    Fix:

  • Error with EventEmitter: Asteroid 2.0 Babel Preset Problem on React Native #90

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

    Possible causes:
    It seems to be a problem when different version of wolfy87-eventemitter in ddp.js and asteroid are included.

    Fix:
    If you have this issue, try to install wolfy87-eventemitter as a dependency.


For any question about React-Native, please retry in this topic.

@tongdu99
Copy link

Thank you for the information!
I got a little different error:

TransformError: [project_path]/node_modules/asteroid/lib/asteroid.js: Couldn't find preset "es2015" relative to directory "[project_path]/node_modules/asteroid"

After I installed babel-preset-es2015 and babel-preset-stage-0 and restart the app, still the same error.
Any suggestions?
Thanks!

@tongdu99
Copy link

I also tried 3.0.0-alpha branch and clean the cache, but still the same error.

@davidebianchi
Copy link
Contributor Author

Hi @tongdu99,

Did you have a .babelrc file in your project?

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

2 participants