Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy error: Error: Cannot read properties of undefined (reading 'getProject') #598

Closed
shazron opened this issue Oct 10, 2022 · 1 comment · Fixed by #599
Closed

deploy error: Error: Cannot read properties of undefined (reading 'getProject') #598

shazron opened this issue Oct 10, 2022 · 1 comment · Fixed by #599
Labels
bug Something isn't working

Comments

@shazron
Copy link
Member

shazron commented Oct 10, 2022

Repro

Use aio-cli@9.x

  1. aio app create foo
  2. cd foo
  3. aio app use -w Production
  4. aio app deploy

Error

❯ aio app deploy
 ›   Error: Cannot read properties of undefined (reading 'getProject')

Investigation

Line

const { appId } = await libConsoleCLI.getProject(aioConfig.project.org.id, aioConfig.project.id)
- libConsoleCli is null, because flags.publish is false due to
// if there are no extensions, then set publish to false

The code causing the error was introduced in 4197d2e

@shazron shazron added the bug Something isn't working label Oct 10, 2022
@aiojbot
Copy link
Collaborator

aiojbot commented Oct 10, 2022

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-1830

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants