Skip to content

Issue after 5.0.9 update  #1228

@pongells

Description

@pongells

Expected Behavior

I should be able to use Element

Actual Behavior

When I run my React app using Vite I get:

Uncaught SyntaxError: The requested module '/@fs/Users/.../node_modules/.vite/app/deps/html-react-parser.js?v=719515aa' does not provide an export named 'Element' (at list.tsx:6:31)

in list.tsx I have:

import { DOMNode, domToReact, Element } from "html-react-parser";

Steps to Reproduce

Try to use Element after 5.0.9 update.

Environment

  • Version: 5.0.9
  • Platform: Vite
  • Browser: Chrome
  • OS: MaxOs

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions