You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to build a Node.js project with Nixpacks, the build fails if there is an .nvmrc file that contains a version string like lts/iron. It seems that the code only recognizes versions in the format (e.g., 20.13.1), but nvmrc files may contain other valid formats such as lts/iron.
Current behaviour:
The build fails because the version string in the .nvmrc file is not recognized if its a string (lts/iron) and throws following error:
Syntaxerror: unexpectedtoken"T_BASIC_UNESCAPED"atline1withvalue ": node version lts/iron is not valid
To reproduce
Add an .nvmrc file with the content specifying a version as string like lts/iron.
Try to build with Nixpacks.
Environment
Nixpacks: v1.28.1
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Describe the bug
When attempting to build a Node.js project with Nixpacks, the build fails if there is an .nvmrc file that contains a version string like
lts/iron
. It seems that the code only recognizes versions in the format(e.g., 20.13.1)
, but nvmrc files may contain other valid formats such aslts/iron
.Current behaviour:
The build fails because the version string in the .nvmrc file is not recognized if its a string (lts/iron) and throws following error:
To reproduce
lts/iron.
Environment
Nixpacks: v1.28.1
The text was updated successfully, but these errors were encountered: