Error: Failed to parse Nixpacks config file `nixpacks.toml`
==============
Using Nixpacks
==============
context: f032e9f2c589328ea1c2ba2d9660664c
Nixpacks build failed
Error: Failed to parse Nixpacks config file
nixpacks.toml
Caused by:
redefinition of table packages
for key packages
at line 24 column 117 Replies
Project ID:
3800ace0-d257-4ff7-94a3-52610b09dbcd
3800ace0-d257-4ff7-94a3-52610b09dbcd
please send the nixpacks.toml file in question
https://nixpacks.com/docs/configuration/file
╔══════════════ Nixpacks v1.0.5 ══════════════╗
║ setup │ nodejs-16_x, yarn-1_x, openssl ║
║─────────────────────────────────────────────║
║ install │ yarn install-prod ║
║─────────────────────────────────────────────║
║ build │ yarn run build ║
║─────────────────────────────────────────────║
║ start │ yarn run start ║
╚═════════════════════════════════════════════╝
[phases.install]
retry up to 5 times on fails
cmds = ['for i in 1 2 3 4 5; do yarn run install-prod && break sleep 5; done']
[packages]
nodejs = "18.x"
[phases.build]
cmds = ['for i in 1 2 3 4 5; do yarn run build && break sleep 5; done']
[start]
cmd = 'yarn run start'
Configuration File Reference | Nixpacks
App source + Nix packages + Docker = Image
please just send the nixpacks.toml file
and enclose it in a code block
why the retry loop
honestly not sure 🤔 i will ask
do you think this will sove the issue
Caused by:
redefinition of table packages for key packages at line 24 column 1?
no offense but this seems like something chatgpt would come up with
lol
someone wrote this 11 months ago XD and left the company so maybe you are guessing right
honestly I don't see the need for a nixpacks.toml file here
if you want to use node 18, set
engines.node
to 18 in your package.json
I have only been addressing the elephant in the room, but it's not valid because [packages]
isn't a valid configbut still need the Nixpacks file right ?
the retry loop is kinda silly tbh, so no you don't need a nixpacks.toml file in my opinion
thanks
all good now?
yes thanks
no prob 🙂