Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use umijs ssr error #35

Open
crazyair opened this issue Nov 25, 2020 · 4 comments
Open

use umijs ssr error #35

crazyair opened this issue Nov 25, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@crazyair
Copy link

crazyair commented Nov 25, 2020

umijs/umi#5732


Updated by a maintainer:

A related issue: jsdom/jsdom#3042

@kkomelin kkomelin added the bug Something isn't working label Nov 25, 2020
@kkomelin
Copy link
Owner

Thanks for reporting @crazyair Will investigate.

@crazyair
Copy link
Author

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)
``

@DeviousM
Copy link

DeviousM commented Dec 2, 2020

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

@crazyair
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants