-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command generate-templates is not working #853
Comments
I just encountered this issue as well. I tried a few previous versions of the library and it appears that both problems started with version 13.0.10. |
I installed version 12.0.4 and everything worked. For me, the trouble started with version 13 |
+1 |
same here. v13.0.23, node 10.16.0, pnpm 9.7.0 |
Same here with v13.0.23 - the issue was introduced with v13.0.10. With 13.0.9 it worked (and works again after downgrade) fine node 20.18.0 |
I tried to generate the templates with the
generate-templates
command. I think it is not doing what it is supposed to do. I'm using version 13.0.14.First try with pnpm:
npx swagger-typescript-api generate-templates -o src/provider/swagger-typescript-api-templates/ --http-client axios
throws an error:The error is correct, the directory
/workspace/backend/node_modules/.pnpm/[email protected]/templates/base
does not exist. I think there is an issue with pnpm somehow.But...
I tried it with npm as well, there the error is different, it does find the
base
directory in the node_modules package, but:When I do create the
/home/user/workspace/tmp/templates/base
directory it asks for thehttp-clients
directory and after that fordefault
directory. Then the command seems to succeed with the message:But the directories I created are completely empty.
The text was updated successfully, but these errors were encountered: