We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
AsyncStorage in React Native is not global.
Solution:
AsyncStorage
Error with node-haste persisting cache Error stack trace:
node-haste
[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
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:
babel-preset-stage-0
Error with EventEmitter: Asteroid 2.0 Babel Preset Problem on React Native #90
EventEmitter
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.
wolfy87-eventemitter
ddp.js
asteroid
Fix: If you have this issue, try to install wolfy87-eventemitter as a dependency.
dependency
For any question about React-Native, please retry in this topic.
The text was updated successfully, but these errors were encountered:
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!
Sorry, something went wrong.
I also tried 3.0.0-alpha branch and clean the cache, but still the same error.
Hi @tongdu99,
Did you have a .babelrc file in your project?
.babelrc
No branches or pull requests
AsyncStorage in React Native is not global.
Solution:
AsyncStorage
locally, you can use asteroid#3.0.0-alpha.Error with
node-haste
persisting cacheError stack trace:
and, after install
babel-preset-es2015
Fix:
babel-preset-es2015
andbabel-preset-stage-0
Error with
EventEmitter
: Asteroid 2.0 Babel Preset Problem on React Native #90Possible causes:
It seems to be a problem when different version of
wolfy87-eventemitter
inddp.js
andasteroid
are included.Fix:
If you have this issue, try to install
wolfy87-eventemitter
as adependency
.For any question about React-Native, please retry in this topic.
The text was updated successfully, but these errors were encountered: