Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Error: only one instance of babel-polyfill is allowed  #450

@or2008

Description

@or2008

Version of EOSJS
20.0.0-beta2

Describe the bug
When a project that already use babel-polyfill, include this library, an exception occur:

Uncaught Error: only one instance of babel-polyfill is allowed

To Reproduce

check here the code to reproduce:
https://codesandbox.io/s/q33k7vmk14

import '@babel/polyfill';
import { JsSignatureProvider } from 'eosjs';

as far as I know, 3rd party libraries, such this one, should not include babel-polyfill, check the answer here for more info:
https://stackoverflow.com/questions/34962902/should-javascript-library-which-uses-es6-and-es7-features-require-babel-polyfill

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions