Closed Hector-f-Romero closed 2 months ago
Thanks @Hector-f-Romero for the bug report. I think this problem relates to Redocly CLI, so I've transferred it to the repo for that project. Does using a specific version of the CLI help? For example if you change your command to:
npx @redocly/cli@1.17.0 build-docs ./docs/openapi.yaml --output ./docs/docs.html
Can you let us know if you see the same problem with this command?
With npx @redocly/cli@1.17.0
can generate the html file without problems. Thanks for help.
Maybe some kind of local cache? Does it throw the error if you install the latest version of Redocly CLI?
He's using npx, so there shouldn't be any local install to consider.
He's using npx, so there shouldn't be any local install to consider.
I haven't installed redocly/cli, redoc or something like that. When I have used npm list
or npm list -g
I do not find any coincidence.
At some point I used npm cache clean --force
as explained above, but not works.
He's using npx, so there shouldn't be any local install to consider.
npx
has some quirks. It caches the installed modules in some weird ways sometimes. I think we can close this issue for now.
Describe the bug Today I am documenting a project and I executed the command
npx @redocly/cli build-docs ./docs/openapi.yaml --output ./docs/docs.html
in my case. Previous days I have used this same problem and I generated the correspondingdocs.html
Now the console show me the next error:
Expected behavior Redoc generates the corresponding
docs.html
file as it did beforeAdditional context I have already removed the node_modules and used commands such as
npm cache clean --force
andnpm i
, but the error persists.