Error on `npm start` after requiring
Closed this issue · 1 comments
kyleshepherd commented
Hi, I'm trying to use this in a project, but once I require the package, I get this error on running npm start
ModuleNotFoundError: Module not found: Error: Can't resolve 'canvas' in '/Users/kyle/repos/osrs-api/node_modules/jsdom/lib/jsdom'
I'm not sure why just adding const hiscores = require("osrs-json-hiscores");
causes this, hopefully you can shed some light!
maxswa commented
I've never encountered this issue before. It looks like some other people have though when using jsdom: jsdom/jsdom#3042
If that doesn't solve the issue, let me know. I can try and investigate further.