Open liebstein opened 2 months ago
Same problem with @types/node version 22.5.4. Using override in package.json to downgrade to version 22.5.1.
Same problem with @types/node version 22.5.4. Using override in package.json to downgrade to version 22.5.1.
well, i resolved...
Same here. I fixed it by adding
"resolutions": { "@types/node": "22.5.1" },
in package.json
Bug Report Checklist
Description
We're using Gradle plugin with
typescript-angular
generator to generate an Angular client with Angular version of 13.3.12 and Node version of v14.21.3.When generating an SDK and running
npm install && npm run build
we encounter the following exception, which seem to have started only the the recent couple of days.It seem to have been resulting from a transitive dependency of
@types/node@22.5.2
which was recently updated and originally comes fromng-packagr
dependency. https://www.npmjs.com/package/@types/node?activeTab=versionsOur current workaround is to use a legacy stable version of
@types/node
and executing the following command before runningnpm run build
npm install --save-dev @types/node@18.11.9
openapi-generator version
Version 7.4.0
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Generate angular typescript client with Angular version of 13.3.12 and Node version of v14.21.3. Run
npm install && npm run build
Related issues/PRs
Suggest a fix
Use a fixed version of @types/node which is compatible with legacy Node versions