Closed xinfang closed 2 years ago
The lib/v6
directory is where the compiled rust library is supposed to be found. It looks like something went wrong when you initially installed the module. Take a look at the Installation section of the readme and make sure your system meets all the requirements and you followed the correct procedure for installing the module.
For anyone else coming across this issue, ensure that in your webpack config you have skia-canvas
listed under the externals
property:
module.exports = {
// ...(other webpack config)
externals: {
// ...
'skia-canvas': 'skia-canvas'
}
}
The issue stems from webpack trying to build with the skia-canvas package as if it's all JS when it actually contains a binary.
Hi Guys,
I am getting this error on a backend NestJS application when I run my Jest tests.
Any idea how I can overcome this?
FAIL src/modules/qrcodes/qrcode.controller.test.spec.ts
● Test suite failed to run
Cannot find module './v6' from 'node_modules/skia-canvas/lib/index.js'
Require stack:
node_modules/skia-canvas/lib/index.js
I meet this issue. any advice is appreciate
Thanks.