Getiing error " app property runtime must be object valid-document-required" during forge deploy

I am getting below error when trying to run “forge deploy” for a custom ui forge app after upgrading cli version to 9.0 from 8.0. Any idea how to fix this ?

I tried adding below to the manifest.yml but still getting the error

manifest

1:0     error    app property runtime must be object  valid-document-required

Error: Command failed due to validation error.

Error: Command failed due to validation error.
    at PreCommandController.runChecks (/Users/a/.nvm/versions/node/v18.14.2/lib/node_modules/@forge/cli/out/command-line/controller/pre-command-controller.js:24:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /Users/a/.nvm/versions/node/v18.14.2/lib/node_modules/@forge/cli/out/command-line/controller/pre-command-controller.js:32:13
    at async Command.checkPreconditions (/Users/a/.nvm/versions/node/v18.14.2/lib/node_modules/@forge/cli/out/command-line/command.js:236:27)
    at async Command.actionProcessor (/Users/a/.nvm/versions/node/v18.14.2/lib/node_modules/@forge/cli/out/command-line/command.js:70:53)
    at async Command.parseAsync (/Users/a/.nvm/versions/node/v18.14.2/lib/node_modules/@forge/cli/node_modules/commander/lib/command.js:936:5)
    at async Command.parse (/Users/a/.nvm/versions/node/v18.14.2/lib/node_modules/@forge/cli/out/command-line/command.js:194:13)
    at async main (/Users/a/.nvm/versions/node/v18.14.2/lib/node_modules/@forge/cli/out/command-line/index.js:51:5)

I was able to resolve the issue. I was using incorrect yml syntax. Below is the correct app.runtime.name that fixed the issue

app:
  id: ari:cloud:ecosystem::app/xxxxxxxxxxxxxx
  licensing:
    enabled: true
  runtime:
    name: nodejs18.x
3 Likes