Node 22.3.0 support via nixpacks?
cstoneham
PROOP

2 years ago

on setup it says: nodejs22, yarn-1x, openssl but then later crashes with: The engine "node" is incompatible with this module. Expected version ">=22.3.0". Got "22.2.0".

I noticed that 22.2.0 does work when set as the engine in package.json

8 Replies

2 years ago

try adding this nixpacks.toml to your project -

[phases.setup]
    nixpkgsArchive = 'dd1ea8f3077098b09d0f57deb8b04b5a8f6e0838' # https://github.com/NixOS/nixpkgs/commit/dd1ea8f3077098b09d0f57deb8b04b5a8f6e0838

2 years ago

n/a


cstoneham
PROOP

2 years ago

no luck


cstoneham
PROOP

2 years ago

[build]
nixpacksVersion = "1.24.1"

[phases.setup]
nixPkgs = ['...', 'fontconfig']
nixpkgsArchive = 'dd1ea8f3077098b09d0f57deb8b04b5a8f6e0838'

2 years ago

that looks like a combination of a railway.toml and a nixpacks.toml file


cstoneham
PROOP

2 years ago

oh my mistake, giving it another shot


cstoneham
PROOP

2 years ago

awesome that worked, thanks!


2 years ago

no problem!


Loading...