awslabs / aws-api-gateway-developer-portal

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

Api Gateway developer portal setup on local is not working #588

Open rajkumarbindal1982 opened 1 year ago

rajkumarbindal1982 commented 1 year ago

I followed steps as mentioned on https://github.com/awslabs/aws-api-gateway-developer-portal#3-deploy-using-the-development-scripts and with this the developer portal on local came up but it was not showing the details of Apis. While inspecting UI code with developer tools, i saw various errors saying : "ReferenceError : Buffer is not defined" at deep-extend.js:32:18 Attaching screenshot showing this issue. Attached is har file(saved as .txt file) taken from the browser. har.txt BufferNotDefinedError WorkingDevPortal NonWorkingDevPortal If i click on any api (left side) in working dev portal(Created using SAR deployment related steps mentioned on Deploy using SAR at https://github.com/awslabs/aws-api-gateway-developer-portal#1-deploy-using-sar), it shows swagger related details of the apis etc. While the same process doesn't display anything in the non-working portal(created from https://github.com/awslabs/aws-api-gateway-developer-portal/blob/main/BUILDING_SAM.md) Can you please check.

chandanrjit commented 1 year ago

Hey @rajkumarbindal1982 , Can you help me with the setup? I am getting errors while API listing page

mchepuri commented 1 year ago

I am also facing same issue. Unable to run this app locally. Based on my search and understanding so far, we need to add webpack polyfill for buffer. But i dont know how in this project, since i dont find any references. I tried with npm installing polyfill separately. It did not work.