Expected Behavior
html-react-parser should work correctly in CodeSandbox (Vite/ESM-based environment).
Actual Behavior
When using html-react-parser in CodeSandbox, the console throws a module resolution error:
Could not find module in path: 'html-dom-parser/lib/client/html-to-dom.js'
relative to '/node_modules/html-dom-parser/esm/client/html-to-dom.mjs'
Steps to Reproduce
Use html-react-parser in CodeSandbox.
Reproducible Demo
https://codesandbox.io/p/sandbox/old-glade-v6jvnl
Environment
- Version: "html-react-parser": "^5.2.6",
- Platform:
- Browser:
- OS: