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
Issue I'm seeing after running npx openapi-codegen gen apiClient in github actions
node:fs:453
return binding.readFileUtf8(path, stringToFlags(options.flag));
^
Error: ENOENT: no such file or directory, open '/home/runner/.npm/_npx/d0626b3472b240bf/node_modules/openapi-codegen/configs/gen.json'
at Object.readFileSync (node:fs:453:20)
at Object.<anonymous> (/home/runner/.npm/_npx/d0626b3472b240bf/node_modules/openapi-codegen/cg.js:80:62)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:10[23](https://github.com/3sidedcube-orca/psma-web/actions/runs/13269446482/job/37045377640#step:4:24):12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/runner/.npm/_npx/d0626b3472b[24](https://github.com/3sidedcube-orca/psma-web/actions/runs/13269446482/job/37045377640#step:4:25)0bf/node_modules/openapi-codegen/configs/gen.json'
}
Thanks @fabien0102 - this looks like another issue you found, i did resolve this by ensuring i had installed npm packages in the same job . I will update to use @openapi-codegen/cli though!
Issue I'm seeing after running
npx openapi-codegen gen apiClient
in github actionsThis is my config:
Github Action Job
npm run api:generate
script is justnpx openapi-codegen gen apiClient
The text was updated successfully, but these errors were encountered: