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)
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