Skip to content
New issue

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

Uncaught ReferenceError: regeneratorRuntime is not defined - non-functional in browser #54

Open
AlexVallat opened this issue Mar 30, 2021 · 3 comments

Comments

@AlexVallat
Copy link

When running in a browser, XmlDSigJs cannot be loaded as it throws:

xmldsig.js:16316 Uncaught ReferenceError: regeneratorRuntime is not defined
    at xmldsig.js:16316
    at xmldsig.js:16436
    at xmldsig.js:16465
    at xmldsig.js:22824

This can be minimally reproduced by this fiddle: https://jsfiddle.net/ucrkbtdv/

@AlexVallat
Copy link
Author

Bisection indicates this occurred between 2.0.27 and 2.0.28

@microshine
Copy link
Collaborator

microshine commented May 10, 2021

Looks like you need Babel polyfill

@linkurzweg
Copy link

linkurzweg commented Dec 9, 2021

@AlexVallat Just do npm install regenerator-runtime and import 'regenerator-runtime'
in your project and it will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants