muya icon indicating copy to clipboard operation
muya copied to clipboard

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

Open imp-oh opened this issue 4 years ago • 2 comments

muya\lib\utils\dompurify.js Incompatible vite

import DOMPurify from 'dompurify'
const isValidAttribute = DOMPurify.isValidAttribute
const sanitize = DOMPurify.sanitize

export {
  isValidAttribute
}

export default sanitize

imp-oh avatar Apr 06 '22 01:04 imp-oh

I have the same problem,Also used vite.

IronCode1024 avatar Jun 20 '22 06:06 IronCode1024

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

imp-oh avatar Jun 20 '22 06:06 imp-oh

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

Jocs avatar Aug 23 '23 16:08 Jocs

The project has already provided a built version. You can try installing the latest version.

Jocs avatar Sep 30 '23 12:09 Jocs