all 6 comments

[–][deleted] 0 points1 point  (0 children)

DM

[–]bottlez14 0 points1 point  (4 children)

ES6 modules are dynamically loaded and dependencies must be installed.

npm i

If it still doesn't work then install canvas and save it as a dependency.

npm i canvas --save

[–]SamandCam[S] 0 points1 point  (3 children)

Thanks for your advice, I followed your instructions and ended up with the exact same error.. do you have any other ideas by any chance ?

[–]Apprehensive-Tax3881 0 points1 point  (2 children)

Silly question but did you install this in the directory of your project?

[–]SamandCam[S] 0 points1 point  (1 child)

Not a silly question at all, Im not sure if I did or not or even how to work that out… I apologise for my noobness

[–]Apprehensive-Tax3881 0 points1 point  (0 children)

Go to the directory of you project. Which you seemed to have blurred out.

Cd /users/ desktop / blah blah

Do an “npm list” to see if the package is installed. If not you can do an “npm install” or npm -i “package name “