isomorphic-dompurify
isomorphic-dompurify copied to clipboard
use umijs ssr error
https://github.com/umijs/umi/issues/5732
Updated by a maintainer:
A related issue: https://github.com/jsdom/jsdom/issues/3042
Thanks for reporting @crazyair Will investigate.
install canvas
ERROR Failed to compile with 1 errors 10:08:39 AM
error in ./node_modules/canvas/build/Release/canvas.node
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
``
Hi, I created a PR to fix that issue (JSDOM only has canvas
as a peerDependency, which means that it relies on you installing it).
https://github.com/kkomelin/isomorphic-dompurify/pull/36
Hi, I created a PR to fix that issue (JSDOM only has
canvas
as a peerDependency, which means that it relies on you installing it). #36
Now, can the UMI project be used? Can others be used?