Skip to content

version 5.0.1 cannot work with vite #1132

@InfiniteXyy

Description

@InfiniteXyy

Expected Behavior

Should work with vite

Actual Behavior

image

Steps to Reproduce

  1. Create a very simple react-ts starter project with yarn create vite
  2. Install the latest version of html-react-parser with yarn add html-react-parser
  3. Import and use it in App.tsx
  4. run npx vite build && npx vite preview
  5. There will be an xxx is not a function error

Reproducible Demo

Stackblitz link: https://stackblitz.com/edit/vitejs-vite-grzmrj?file=package.json

Environment

  • Version: 5.0.1
  • Browser: Chrome
  • OS: MacOS

Keywords

Module config

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions