The requested module '/node_modules/.vite/deps/dompurify.js?v=3e090982' does not provide an export named 'isValidAttribute'
imp-oh opened this issue · comments
impoh commented
muya\lib\utils\dompurify.js Incompatible vite
import DOMPurify from 'dompurify'
const isValidAttribute = DOMPurify.isValidAttribute
const sanitize = DOMPurify.sanitize
export {
isValidAttribute
}
export default sanitize
LiuJianFeng commented
I have the same problem,Also used vite.
impoh commented
I have the same problem,Also used vite.
To use the https://github.com/marktext/marktext Modified into vue
I am now directly using MarkText to modify it to vue2
There are too many problems with this version
Ran Luo commented
Now the project is not work with built, so vite may not be supported,PR is welcomed