Comments (9)
@hong6316 use
"canvas": "Automattic/node-canvas#master",
in your package.json for the time being ... Works with node 22
from node-canvas.
@hong6316
You can still use this npm feature: "overrides"?
https://github.com/npm/cli/releases/tag/v8.3.0
from node-canvas.
Node.js 22 includes v8/v8@e48c472, which removed the v8::AccessControl settings
parameter from v8::ObjectTemplate::SetAccessor
.
v8::ObjectTemplate::SetAccessor(
v8::Local<v8::String>&,
void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&),
void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&),
v8::Local<v8::Object>&,
v8::AccessControl&, // Removed!
v8::PropertyAttribute&
)
#2235 probably fixed this problem by not using nan
anymore, but it hasn't been released to npm yet.
from node-canvas.
@hong6316 use
"canvas": "Automattic/node-canvas#master",
in your package.json for the time being ... Works with node 22
That's not possible, I didn't add the canvas module directly to package.json.
The 3rd party module uses canvas.
from node-canvas.
Adding overrides
doesn't seem to be working with bun:
"overrides": {
"canvas": "Automattic/node-canvas#master"
}
bun i
[0.06ms] ".env"
bun install v1.1.9 (bb13798d)
[13.25ms] migrated lockfile from package-lock.json
error: canvas@^2.11.2 failed to resolve
error: canvas@^2.11.2 failed to resolve
from node-canvas.
Related Issues (20)
- 'drawImage()', then '.toBuffer('application/pdf')', but the image is fuzzy HOT 1
- The loadImage() method can fail with Request timed out error on older hardware HOT 2
- Mark TextMetrics#fontBoundingBoxAscent etc. as unimplemented HOT 1
- Cannot install canvas on apple silicon HOT 13
- SVG cannot load the image link & font CSS HOT 1
- Move away from GTK 2 to newer libraries on Windows HOT 1
- Unexpected font fallback strategy on Linux
- npm intall not working HOT 9
- mac OS 14 => Cant install despite all other issues and installation guide HOT 6
- Canvas installation failure with Node v20.12.1 HOT 2
- Running electron-builder on Win11 fails when package "pdfjs-dist" is included because of ~/node_modules/canvas HOT 3
- How to use prebuild for AWS lambda? HOT 1
- node-canvas will not install. at all. HOT 6
- loadImage function is not allowing use of await keyword HOT 1
- Canvas fails to import after install HOT 2
- installation error due to the dependency of node-pre-gyp ERR i've spend 1 day's solving this HOT 3
- Calling `registerFont()` on multiple fonts in same family appears to break prior registration (Avenir Next Rounded)
- 'colorSpace' missing from the declaration of ImageData
- gyp: Undefined variable android_ndk_path in binding.gyp while trying to load binding.gyps HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-canvas.