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

Issue after 5.0.9 update #1228

Closed
pongells opened this issue Dec 18, 2023 · 3 comments · Fixed by #1229
Closed

Issue after 5.0.9 update #1228

pongells opened this issue Dec 18, 2023 · 3 comments · Fixed by #1229
Assignees
Labels
bug Something isn't working

Comments

@pongells
Copy link

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
@pongells pongells added the bug Something isn't working label Dec 18, 2023
@remarkablemark
Copy link
Owner

remarkablemark commented Dec 18, 2023

You're right @pongells, I caused a regression in the latest release. I was able to reproduce the issue in https://codesandbox.io/p/devbox/html-react-parser-fg2jpw

I will prioritize a fix ASAP. Related to ce09a65#r135238939

remarkablemark added a commit that referenced this issue Dec 18, 2023
Fixes #1228

Vite fails with the error:

```
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)
```
@remarkablemark
Copy link
Owner

@pongells
Copy link
Author

Thanks @remarkablemark , works like a charm :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants