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

Make Dev Portal Build on Node 16 #514

Closed ichuckyi closed 2 years ago

ichuckyi commented 2 years ago

Updating packages to successfully build on node v16.

The main issue was from the forked project awslabs/swagger-ui#apigw-fork-v4 where the node-sass dependency would completely crash the build since it was not compatible at all with node16. This has been fixed here: https://github.com/awslabs/swagger-ui/commit/77b2f810dbc845bab8b94da2032866ac39d7ff8a

I verified that these package changes are backwards compatible with node versions 12 and 14, if users still want to use those versions. Otherwise, building on node 16 should be fast and work as intended (without these package changes, building on node 16 will take a very long time, but will still work)

To test the changes, checkout this branch and follow the development guide here: https://github.com/awslabs/aws-api-gateway-developer-portal/blob/master/BUILDING.md while using node v16