Skip to content

Uncaught ReferenceError: exports is not defined #828

@remarkablemark

Description

@remarkablemark

Expected Behavior

CDN (UMD) script should work without error.

Actual Behavior

CDN (UMD) script throws error:

Uncaught ReferenceError: exports is not defined

Steps to Reproduce

Add and open in HTML page:

<script src="https://unpkg.com/html-react-parser@3/dist/html-react-parser.min.js"></script>

Reproducible Demo

https://jsfiddle.net/remarkablemark/r7uwha1b/

Environment

  • Version: 3
  • Platform: N/A
  • Browser: Chrome
  • OS: N/A

Keywords

UMD, CDN, script, error

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions