Canvas is not found #3737
Unanswered
HexSleeves
asked this question in
Q&A
Replies: 1 comment
-
I was getting the same error--the code that was panicking was the following: let surface = instance.create_surface(window).unwrap(); The answer for me ended up being the to initialize the window with the canvas element I want to render to before building the window: let window = WindowBuilder::new()
.with_canvas(Some(html_canvas_element))
.build(&event_loop)
.unwrap(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I keep getting
Canvas is not found
when building for wasm, and I cannot figure out why? Has anyone dealt with this issue?Beta Was this translation helpful? Give feedback.
All reactions