Open MoJo2600 opened 3 months ago
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 I use Node 20.12.2 and Npm 10.5.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/swagger-typescript-api@13.0.12/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.