marktext / muya

📄 Future markdown editor for web browser applications development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The requested module '/node_modules/.vite/deps/dompurify.js?v=3e090982' does not provide an export named 'isValidAttribute'

imp-oh opened this issue · comments

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

I have the same problem,Also used vite.

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

Now the project is not work with built, so vite may not be supported,PR is welcomed