Skip to content

Empty scrawl.library.canvas (canvas could not be found?) in Vue2 #23

Answered by KaliedaRik
Sjoerd82 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, Sjoerd82

I'm not sure I can be of much help to you here as I have no experience of using the Vue framework. I have managed to add SC to a very basic React website, and also to Svelte (as seen in the library's website, which is built using Svelte). There's a couple of "How Do I" articles on how to include SC in these frameworks, which might offer some insights?

React: https://scrawl-v8.rikweb.org.uk/how-do-i/add-to-a-react-project/
Svelte: https://scrawl-v8.rikweb.org.uk/how-do-i/add-to-a-svelte-project/

If you do manage to solve the issue, then I'll be more than happy to add a similar Vue article to the website.

Edit:

Try replacing let canvas = scrawl.library.canvas.mycanvas with let …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by KaliedaRik
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #21 on May 14, 2022 09:23.