awslabs / aws-api-gateway-developer-portal

A Serverless Developer Portal for easily publishing and cataloging APIs
Apache License 2.0
927 stars 399 forks source link

Get "Task errored: release Cannot read property 'push' of undefined" while trying to run /dev-portal locally #433

Closed RickLee83 closed 3 years ago

RickLee83 commented 3 years ago

Hi. Am following the guide in: https://github.com/awslabs/aws-api-gateway-developer-portal/blob/master/BUILDING.md#staticassetrebuildmode-string

I get the following error message upon running the command "Run node run install release." mentioned in Step 5.

The error is as below: Task errored: release Cannot read property 'push' of undefined

Can anyone share what is the cause I'm getting the error message above??

ghost commented 3 years ago

Could you include a full stack trace?

RickLee83 commented 3 years ago

HI @amazon-meaisiah , after a few round of search on all the Issues that related to mine I found that my project code (Clone from master branch from here) is missing a few files that is needed in order to run node run install release command with no error.

As mentioned in issue number 170 (https://github.com/awslabs/aws-api-gateway-developer-portal/pull/170) it seems like there are changes made in /dev-portal folder to run the Developer Portal UI locally.

Below link is the link to the branch (4dbbec4) mentioned in issue number 170: https://github.com/awslabs/aws-api-gateway-developer-portal/tree/4dbbec42399eff3d4280e373c9c6ac35db80f123/dev-portal

My question is why is this branch change is not yet merged into master branch (since 5 Dec 2018)?? Is there an issue from the changes in this branch??

RickLee83 commented 3 years ago

Closing this issue as I've got the problem solved.