Code Monkey home page Code Monkey logo

Comments (6)

niklaskeerl avatar niklaskeerl commented on July 4, 2024 6

I had the same problem. Installing the package solves the issue.

npm install --save babel-polyfill

from react-insta-stories.

mohitk05 avatar mohitk05 commented on July 4, 2024 6

Checked this one, installing babel-polyfill solves the issue. @niklaskeerl it's better to install it as a dev dependency!

npm install --save-dev babel-polyfill

from react-insta-stories.

EralpB avatar EralpB commented on July 4, 2024

When I install babel-polyfill I get

Error: only one instance of babel-polyfill is allowed
    at Object.eval (webpack://dev-server/./node_modules/babel-polyfill/lib/index.js?:16:9)
    at eval (webpack://dev-server/./node_modules/babel-polyfill/lib/index.js?:52:30)
    at Object../node_modules/babel-polyfill/lib/index.js (<anonymous>:367:1)
    at __webpack_require__ (<anonymous>:30:30)
    at Module.eval (webpack://dev-server/./src/components/contact-us.js?:14:1)
    at eval (webpack://dev-server/./src/components/contact-us.js?:46:30)
    at Module../src/components/contact-us.js (<anonymous>:7693:1)
    at __webpack_require__ (<anonymous>:30:30)
    at Module.eval (webpack://dev-server/./src/pages/contact-us.js?:2:126)
    at eval (webpack://dev-server/./src/pages/contact-us.js?:34:30)

using this boilerplate: https://www.reactpwa.com/en/ I just added couple of lines

from react-insta-stories.

mohitk05 avatar mohitk05 commented on July 4, 2024

I have fixed this issue in the recent commit. babel-polyfill was being imported wrongly. Please update your npm package! Hope this solves the issue. @EralpB @vlinas

Update
This commit did not solve the issue, I have reverted back to earlier code. The current working npm version is 1.1.2. For now, npm install --save-dev babel-polyfill solves the issue.
Tried rollup-plugin-multi-entry for adding babel-polyfill to the inputs, but it broke default exports. Suggestions for this are welcome.

from react-insta-stories.

wintercounter avatar wintercounter commented on July 4, 2024

You shouldn't include babel-polyfill in your component's code at all. It's up to the user to include in it's codebase.

from react-insta-stories.

mohitk05 avatar mohitk05 commented on July 4, 2024

This issue has been fixed in the latest release. Please update the package to V1.3.0. This version also includes new features like video stories and smooth animations.

from react-insta-stories.

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.