Skip to content

Not possible to build on Heroku-24 #2501

Closed

Description

@chr4ss12

Hello,
I am using heroku APT buildpack, this is my APT file:

build-essential
libpango1.0-dev
libcairo2-dev
libjpeg-dev
libgif-dev
librsvg2-dev
libharfbuzz-dev
libharfbuzz0b
libpangocairo-1.0-0

I keep getting this error:

remote: npm error gyp info spawn make
remote: npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
remote: npm error /usr/bin/ld: cannot find -lpango-1.0: No such file or directory
remote: npm error collect2: error: ld returned 1 exit status
remote: npm error make: *** [canvas.target.mk:206: Release/obj.target/canvas.node] Error 1
remote: npm error gyp ERR! build error

stack: heroku-24
"canvas": "^3.1.0",
"node": "22.14.0",

Activity

  1. chr4ss12 commented on Apr 3, 2025

    @chr4ss12
    Author

    it works when I change node version to

    "node": "22.11.0",

  2. chearon commented on Jun 22, 2025

    @chearon
    Collaborator

    Sounds like you ran into #2497 which won't happen with node-canvas 3.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions