You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Relative paths in redoc-cli bundle broken in v0.11 #1571
+ redoc-cli@0.11.1
added 279 packages from 258 contributors in 10.282s
Error: ENOENT: no such file or directory, open '/docs/openapi/task-management.yaml'
at BaseResolver.<anonymous> (/usr/local/lib/node_modules/redoc-cli/node_modules/@redocly/openapi-core/lib/resolve.js:102:23)
at Generator.throw (<anonymous>)
at rejected (/usr/local/lib/node_modules/redoc-cli/node_modules/@redocly/openapi-core/lib/resolve.js:6:65)
Somehow it's trying to open an absolute path?
There's no issue in v0.10.4. Is there a new way to send relative paths to the cli?
yarn redoc-cli bundle ./openapi.yaml
$ /path/to/project/node_modules/.bin/redoc-cli bundle ./openapi.yaml
Error: ENOENT: no such file or directory, open '/openapi.yaml'
at BaseResolver.<anonymous> (/path/to/project/node_modules/@redocly/openapi-core/lib/resolve.js:102:23)
at Generator.throw (<anonymous>)
at rejected (/path/to/project/node_modules/@redocly/openapi-core/lib/resolve.js:6:65)
error Command failed with exit code 1.
Hmm it seemed to be fixed with an uninstall + reinstall even on 0.11.2. Maybe the update was in openapi-core which didn't get updated because of my yarn config?
Activity
andriyl commentedon Apr 9, 2021
@joelngwt fixed, version: 0.11.2
mrosales commentedon Apr 13, 2021
I'm still having this issue in
0.11.2😞andriyl commentedon Apr 13, 2021
@mrosales please try the latest version:
v0.11.4and let me know if it works for you.mrosales commentedon Apr 13, 2021
Hmm it seemed to be fixed with an uninstall + reinstall even on
0.11.2. Maybe the update was inopenapi-corewhich didn't get updated because of my yarn config?andriyl commentedon Apr 14, 2021
@mrosales hope not, but it's good that works for you.