muya
muya copied to clipboard
The requested module '/node_modules/.vite/deps/dompurify.js?v=3e090982' does not provide an export named 'isValidAttribute'
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.
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
The project has already provided a built version. You can try installing the latest version.