question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot find module '../build/Release/canvas.node'

See original GitHub issue

Description

I’m trying to generate block-wave wallpaper, but got the error MODULE_NOT_FOUND

To reproduce

  1. Clone this repo https://github.com/ng-hai/hyper-rose-pine-next
  2. Install package
yarn install
  1. Run yarn wallpaper:dark

Screenshots

image

Expected behavior

The build has no error

Environment information

CLI

Please fill out the following information if you are using the command-line interface. For the web UI, you can delete this section.

  • Device [e.g. iPhone6, MacBook Pro]: Mac Mini M1
  • OS [e.g. iOS, macOS]: macOS
  • OS version [e.g. 14.0]: 12.0 Beta (21A5506j)
  • Node version [e.g. 14.4.0]: 14.17.0
  • themer version [e.g. 3.3.4]: 3.3.9
  • Other themer packages and their versions [e.g. @themerdev/vscode@2.2.1]: @themerdev/wallpaper-block-wave@4.0.3

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
mjswensencommented, Sep 22, 2021

(BTW, hyper-rose-pine-next is gorgeous 🤩)

1reaction
mjswensencommented, Sep 22, 2021

Thanks for the report, @ng-hai , taking a look now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

30 - Stack Overflow
Nodejs Cannot find module '../build/Release/canvas' · Check if the module is in your node_module directory and if it is, try to require the...
Read more >
Cannot find module '…/build/Release/canvas.node'
Error : Cannot find module '…/build/Release/canvas.node' how to fix this? my project name is rsg-bot. i already tried enable-pnpm.
Read more >
Issue - GitHub
It seems that when building with ts-node, it is unable to find the file '../build/Release/canvas.node' for any reason. If i remove the import...
Read more >
node-canvas模块有问题- CNode技术社区
我在github下载了node-canvas模块的代码,运行了自带的例子clock.js, ... Error: Cannot find module '…/build/Release/canvas' at Function.Module.
Read more >
canvas - npm
node -canvas is a Cairo-backed Canvas implementation for Node.js. Installation. $ npm install canvas. By default, binaries for macOS, Linux and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found