Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The specified procedure could not be found. #2152

Closed
Orangenal-name opened this issue Oct 31, 2022 · 1 comment
Closed

The specified procedure could not be found. #2152

Orangenal-name opened this issue Oct 31, 2022 · 1 comment

Comments

@Orangenal-name
Copy link

Issue or Feature

I have been using canvas in my project for about a week and it has been working fine, a few days ago it started causing errors with node-gyp when adding and removing packages on yarn when it tried linking dependencies, but I ignored it as the packages were still able to be used, I just had to remove them manually if I didn't need them anymore, everything else was working fine, but now today when I launched up my project to begin developing, it has spewed out this error:

Error: The specified procedure could not be found.
\\?\D:\Documents\Oranges utilities nextjs api\oranges-utilities-dashboard\node_modules\canvas\build\Release\canvas.node
    at Module._extensions..node (node:internal/modules/cjs/loader:1233:18)
    at Module.load (node:internal/modules/cjs/loader:1027:32)
    at Module._load (node:internal/modules/cjs/loader:868:12)
    at Module.require (node:internal/modules/cjs/loader:1051:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (D:\Documents\Oranges utilities nextjs api\oranges-utilities-dashboard\node_modules\canvas\lib\bindings.js:3:18)
    at Module._compile (node:internal/modules/cjs/loader:1149:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1203:10)
    at Module.load (node:internal/modules/cjs/loader:1027:32)
    at Module._load (node:internal/modules/cjs/loader:868:12) {
  code: 'ERR_DLOPEN_FAILED',
  page: '/dashboard/[id]'
}

Your Environment

  • Version of node-canvas: 2.10.2
  • Environment: node 18.10.0 on Windows 10 Pro Build 19044
@Orangenal-name
Copy link
Author

I found out that another project I had running was using sharp so I uninstalled that and now everything works. So if anyone else gets this issue: if you sharp installed in any project that's running, that's probably causing the issue, it doesn't matter if it's in the same project as the one that's getting the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant