Closed danielbm closed 8 years ago
Sorry, we need to put babel-preset-stage-0
in dependencies
I believe. In the meanwhile, you can simply do npm i --save-dev babel-preset-stage-0
to fix this.
any idea of when this can be fixed?
For a temporary fix for this issue in your React Native project, you actually want to run the command npm install babel-preset-react-native-stage-0 --save
and add .babelrc file your root project directory with { "presets": ["react-native-stage-0"] }
More information here https://github.com/skevy/babel-preset-react-native-stage-0.
What is the preferred approach here? I was given the suggestion to not compile out a lib folder from the src directory, but I'm really not sure how to support the community without doing so. Should I remove the .babelrc
file? Is it even needed?
See release v0.2.3 on NPM, npm i --save react-native-loading-spinner-overlay@0.2.3
. Thank you!
Thanks @niftylettuce and @slayrbear !
@niftylettuce I have the v0.2.3 and react-native v0.28.0 and same error.
@slayrbear It works for me.
Very weird. It was working for me, now it's not.
@deju Can you confirm if this is working for you once more? Make sure you restart the package manager, etc and try again.
@niftylettuce Any ideas to permanently fix this? My commit should have gotten the error fix by adding babel-preset-react-native-stage-0 as a dev dependency to the package.
Anyways, the temporary fix I mentioned earlier in this thread will fix this in your RN project.
Some news?
I am getting the same error. Used npm i --save react-native-loading-spinner-overlay@0.2.3 and .babelrc file already exists Any suggestion to resolve this issue????
@faizan-tariq-confiz npm i babel-preset-react-native-stage-0 --save-dev
i think this will solve your problem.
I have already tried this, and its not working
+1
I did @slayrbear response and fixed it:
For a temporary fix for this issue in your React Native project, you actually want to run the command npm install babel-preset-react-native-stage-0 --save and add .babelrc file your root project directory with { "presets": ["react-native-stage-0"] }
More information here https://github.com/skevy/babel-preset-react-native-stage-0.
Hi there, Will a permanent fix come for this issue?
Regards
Taking a look here..
See release v0.3.0, install with npm i --save react-native-loading-spinner-overlay
.
I just tested this out on latest version of React Native and also took this screenshot showing this is now working as of v0.3.0
without any extra steps needed. Sorry about that guys, I had been distracted with another more prioritized project. If someone wants to have collaborator status on here and NPM for future updates, I would gladly share it. Thank you for reporting the issue @danielbm
Hi. I am getting this error, which seems related to #20
I am using react native 0.28.0, and react-native-loading-spinner-overlay 0.2.2.
Apparently the fix for #20 did not work for me. Am I doing something wrong?