Skip to content

Commit

Permalink
Update old error messages on valid nodejs runtimes. (#5784)
Browse files Browse the repository at this point in the history
Co-authored-by: joehan <joehanley@google.com>
  • Loading branch information
taeold and joehan committed May 3, 2023
1 parent 4d6da7e commit 254dc8b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ const ENGINE_RUNTIMES_NAMES = Object.values(ENGINE_RUNTIMES);
export const RUNTIME_NOT_SET =
"`runtime` field is required but was not found in firebase.json.\n" +
"To fix this, add the following lines to the `functions` section of your firebase.json:\n" +
'"runtime": "nodejs16"\n';
'"runtime": "nodejs18"\n';

export const UNSUPPORTED_NODE_VERSION_FIREBASE_JSON_MSG = clc.bold(
`functions.runtime value is unsupported. ` +
`Valid choices are: ${clc.bold("nodejs{10|12|14|16}")}.`
`Valid choices are: ${clc.bold("nodejs{10|12|14|16|18}")}.`
);

export const UNSUPPORTED_NODE_VERSION_PACKAGE_JSON_MSG = clc.bold(
`package.json in functions directory has an engines field which is unsupported. ` +
`Valid choices are: ${clc.bold('{"node": 10|12|14|16}')}`
`Valid choices are: ${clc.bold('{"node": 10|12|14|16|18}')}`
);

export const DEPRECATED_NODE_VERSION_INFO =
Expand Down

0 comments on commit 254dc8b

Please sign in to comment.