ERROR Error: ENOENT: no such file or directory, open '__vite-optional-peer-dep:canvas:jsdom'

391 views
Skip to first unread message

Malted

unread,
Sep 12, 2022, 12:14:13 PM9/12/22
to Blockly
Hi all,

I'm getting this error when I import Blockly.

ERROR Error: ENOENT: no such file or directory, open '__vite-optional-peer-dep:canvas:jsdom'


This has only recently started to happen. It's framework agnostic. I can't seem to pinpoint what the cause is.
Has anyone else had this error? If so, what did you do to fix it?

Many thanks

Aaron Dodson

unread,
Sep 13, 2022, 2:30:49 PM9/13/22
to Blockly
Hi,

I haven't seen this, but does removing package-lock.json/rerunning npm install help by chance?

- Aaron

Reply all
Reply to author
Forward
0 new messages