but it can't even run, showing this error: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in ~/workspace/node_modules/canvas-constructor/package.json
To Reproduce
install Canvas or Skia-Canvas
Try this code above
See if it's run
Expected behavior
Code runs and create a blank .png file on workspace
Screenshots
Additional context
Trying to running his on my MacBook with Apple Silicon M1
Describe the bug
Canvas-constructor cannot run in any code. Feeling the reason is incompatibility with Apple Silicon. Tested with this code
but it can't even run, showing this error:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in ~/workspace/node_modules/canvas-constructor/package.json
To Reproduce
Expected behavior
Code runs and create a blank
.png
file on workspaceScreenshots
Additional context
Trying to running his on my MacBook with Apple Silicon M1