Git Product home page Git Product logo

Comments (9)

imrefazekas avatar imrefazekas commented on June 12, 2024 3

@hong6316 use

        "canvas": "Automattic/node-canvas#master",

in your package.json for the time being ... Works with node 22

from node-canvas.

imrefazekas avatar imrefazekas commented on June 12, 2024 1

@hong6316
You can still use this npm feature: "overrides"?

https://github.com/npm/cli/releases/tag/v8.3.0

from node-canvas.

nicolo-ribaudo avatar nicolo-ribaudo commented on June 12, 2024

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 avatar hong6316 commented on June 12, 2024

@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.

mbrevda avatar mbrevda commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.