Repository: Redocly/redoc

Issue #1736: npm ci in redoc hangs indefinitely during reify steps
Created: 2021-08-27T20:16:10Z
Describe the bug
Cloning the redoc repo and running npm install or npm ci hangs indefinitely, consumes 100% of a core.
Expected behavior
I expected to be able to install redoc from source so I could tinker with it.
Additional context
node v16.7.0
npm 7.21.1
redoc master branch 683eabb
Files copied in to a node:latest docker container, not running over a bind mount
npm ci --timing last few lines before it hang indefinitely (at least an hour):
npm timing reifyNode:node_modules/date-fns Completed in 22268ms
npm timing reifyNode:node_modules/lodash Completed in 22438ms
npm timing reifyNode:node_modules/prettier Completed in 22642ms
npm timing reifyNode:node_modules/core-js Completed in 23290ms
npm timing reifyNode:node_modules/typescript Completed in 25104ms
npm timing reifyNode:node_modules/rxjs Completed in 25146ms
[##################] - reify:rxjs: timing reifyNode:node_modules/rxjs Completed in 25146ms

The npm install child of npm ci that is hanging is in workerize-loader. (Found that in the container by running top, then looking at the processes's cwd (cat /proc/$pid/cwd/package.json))
The repro is simple: clone redoc, run docker run -it -v $(pwd):/buildtmp --entrypoint bash node then in the shell cp -rp /buildtmp /build (to ensure you're not building over a bind mount) and cd /build && npm ci --timing.

Duplicate issue #1789: Bundle throws error about missing react-is package missing
Created: 2021-11-08T08:32:51Z
After updating to the latest release candidate (57), we bumped into the issue that it is missing a dependency on react-is. After adding that to our own package.json we are able to bundle again.
The weird thing about this is that react-is looks like a testing (dev) dependency.
Please see the following error:
> redoc-cli bundle ../src/schemas/openapi.yaml --options redoc-options.json -o ../deploy/docs/index.html

internal/modules/cjs/loader.js:905
  throw err;
  ^

Error: Cannot find module 'react-is'
Require stack:
- C:\code\wx-routing-api\doc\node_modules\redoc-cli\node_modules\styled-components\dist\styled-components.cjs.js
- C:\code\wx-routing-api\doc\node_modules\redoc-cli\index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:93:18)
    at Object.<anonymous> (C:\code\wx-routing-api\doc\node_modules\redoc-cli\node_modules\styled-components\dist\styled-components.cjs.js:1:145)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\code\\wx-routing-api\\doc\\node_modules\\redoc-cli\\node_modules\\styled-components\\dist\\styled-components.cjs.js',
    'C:\\code\\wx-routing-api\\doc\\node_modules\\redoc-cli\\index.js'
  ]
}

Closing comment (2021-11-29T11:57:48Z): Thanks for the issue. We'll investigate it.
Related to #1736