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

Error: Cannot find module '@napi-rs/canvas-win32-x64-msvc' #669

Closed
muralianand12345 opened this issue May 5, 2023 · 3 comments
Closed

Comments

@muralianand12345
Copy link

Version @napi-rs/canvas: 0.1.25

`Error: Cannot find module '@napi-rs/canvas-win32-x64-msvc'
Require stack:

  • C:\Users\smura\Desktop\New Roleplay\node_modules@napi-rs\canvas\js-binding.js
  • C:\Users\smura\Desktop\New Roleplay\node_modules@napi-rs\canvas\index.js
  • C:\Users\smura\Desktop\New Roleplay\commands\slash\image.js
  • C:\Users\smura\Desktop\New Roleplay\handlers\commands\commands.js
  • C:\Users\smura\Desktop\New Roleplay\bot.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object. (C:\Users\smura\Desktop\New Roleplay\node_modules@napi-rs\canvas\js-binding.js:36:29)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\Users\smura\Desktop\New Roleplay\node_modules\@napi-rs\canvas\js-binding.js',
    'C:\Users\smura\Desktop\New Roleplay\node_modules\@napi-rs\canvas\index.js',
    'C:\Users\smura\Desktop\New Roleplay\commands\slash\image.js',
    'C:\Users\smura\Desktop\New Roleplay\handlers\commands\commands.js',
    'C:\Users\smura\Desktop\New Roleplay\bot.js'
    ]
    }`
    Can someone help me out?
@Brooooooklyn
Copy link
Owner

does @napi-rs/canvas-win32-x64-msvc existed in your lock file?

@lopo12123
Copy link

I solved the problem after installing vc_redist on my computer (FYI)

see https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

@Brooooooklyn
Copy link
Owner

Fixed in #775

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

3 participants