Coder Social home page Coder Social logo

Comments (20)

larryranches avatar larryranches commented on August 17, 2024 3

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.

from react-native-loading-spinner-overlay.

luisfuertes avatar luisfuertes commented on August 17, 2024 2

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.

from react-native-loading-spinner-overlay.

niftylettuce avatar niftylettuce commented on August 17, 2024 1

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

from react-native-loading-spinner-overlay.

niftylettuce avatar niftylettuce commented on August 17, 2024

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.

from react-native-loading-spinner-overlay.

larryranches avatar larryranches commented on August 17, 2024

any idea of when this can be fixed?

from react-native-loading-spinner-overlay.

niftylettuce avatar niftylettuce commented on August 17, 2024

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?

from react-native-loading-spinner-overlay.

niftylettuce avatar niftylettuce commented on August 17, 2024

See release v0.2.3 on NPM, npm i --save [email protected]. Thank you!

from react-native-loading-spinner-overlay.

danielbm avatar danielbm commented on August 17, 2024

Thanks @niftylettuce and @slayrbear !

from react-native-loading-spinner-overlay.

luisfuertes avatar luisfuertes commented on August 17, 2024

@niftylettuce I have the v0.2.3 and react-native v0.28.0 and same error.

from react-native-loading-spinner-overlay.

deju avatar deju commented on August 17, 2024

@slayrbear It works for me.

from react-native-loading-spinner-overlay.

larryranches avatar larryranches commented on August 17, 2024

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.

from react-native-loading-spinner-overlay.

luisfuertes avatar luisfuertes commented on August 17, 2024

Some news?

from react-native-loading-spinner-overlay.

faizan-tariq-confiz avatar faizan-tariq-confiz commented on August 17, 2024

I am getting the same error.
Used npm i --save [email protected]
and .babelrc file already exists
Any suggestion to resolve this issue????

from react-native-loading-spinner-overlay.

munzur avatar munzur commented on August 17, 2024

@faizan-tariq-confiz
npm i babel-preset-react-native-stage-0 --save-dev

i think this will solve your problem.

from react-native-loading-spinner-overlay.

faizan-tariq-confiz avatar faizan-tariq-confiz commented on August 17, 2024

I have already tried this, and its not working

from react-native-loading-spinner-overlay.

ivpusic avatar ivpusic commented on August 17, 2024

+1

from react-native-loading-spinner-overlay.

tuxtux00 avatar tuxtux00 commented on August 17, 2024

Hi there,
Will a permanent fix come for this issue?

Regards

from react-native-loading-spinner-overlay.

niftylettuce avatar niftylettuce commented on August 17, 2024

Taking a look here..

from react-native-loading-spinner-overlay.

niftylettuce avatar niftylettuce commented on August 17, 2024

See release v0.3.0, install with npm i --save react-native-loading-spinner-overlay.

from react-native-loading-spinner-overlay.

niftylettuce avatar niftylettuce commented on August 17, 2024

screen shot 2016-07-31 at 1 58 47 pm

from react-native-loading-spinner-overlay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.