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
When trying to run OpenAPI code generation using swagger-typescript-api, the following error occurs:
ℹ Code generator will use the default template for"api" 10:24:49
ℹ Code generator will use the default template for"routetypes" 10:24:49
ℹ try to get swagger by URL "http://localhost:10086/doc/api" 10:24:49
ℹ start generating your typescript api 10:24:49
panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/parking_lot_core-0.9.9/src/thread_parker/wasm.rs:26:9:
Parking not supported on this platform
Stack:
Error
at module.exports.__wbg_new_abda76e883ba8a5f (/Users/perish/Projects/cloud-ide-client/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/wasm-nodejs/biome_wasm.js:797:17)
at wasm://wasm/0365fcc6:wasm-function[12695]:0xb16589
at wasm://wasm/0365fcc6:wasm-function[7238]:0x9eb62d
# some other stack info
panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/parking_lot_core-0.9.9/src/thread_parker/wasm.rs:26:9:
Parking not supported on this platform
Stack:
Error
at module.exports.__wbg_new_abda76e883ba8a5f (/Users/perish/Projects/cloud-ide-client/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/wasm-nodejs/biome_wasm.js:797:17)
at wasm://wasm/0365fcc6:wasm-function[12695]:0xb16589
at wasm://wasm/0365fcc6:wasm-function[7238]:0x9eb62d
at wasm://wasm/0365fcc6:wasm-function[10858]:0xaf04d7
at wasm://wasm/0365fcc6:wasm-function[12683]:0xb160ce
at wasm://wasm/0365fcc6:wasm-function[3360]:0x7ab6d6
at wasm://wasm/0365fcc6:wasm-function[493]:0x2e3572
at wasm://wasm/0365fcc6:wasm-function[3467]:0x7c348f
at Workspace.closeFile (/Users/perish/Projects/cloud-ide-client/node_modules/.pnpm/@[email protected]/node_modules/@biomejs/wasm-nodejs/biome_wasm.js:517:18)
at /Users/perish/Projects/cloud-ide-client/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@biomejs/js-api/dist/index.js:82:32
# some other stack info
Failed to generate API client: WasmError
at WasmError.fromError (/Users/perish/Projects/cloud-ide-client/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@biomejs/js-api/dist/wasm.js:84:16)
at wrapError (/Users/perish/Projects/cloud-ide-client/node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@biomejs/js-api/dist/wasm.js:93:22)
}
The text was updated successfully, but these errors were encountered:
Here's the same error that occurred in my GitHub Action。
Environment details
node: v18.20.8 x64
npm: 10.8.2
yarn: 1.22.22
Error stack print
[info] Code generator will use the default template for "api"
[info] Code generator will use the default template for "routetypes"
[info] try to get swagger by path "/home/runner/work/WhiskerRAG/WhiskerRAG/openapi.json"
[info] start generating your typescript api
panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/parking_lot_core-0.9.9/src/thread_parker/wasm.rs:26:9:
Parking not supported on this platform
Stack:
Error
at module.exports.__wbg_new_abda76e883ba8a5f (/opt/hostedtoolcache/node/18.20.8/x64/lib/node_modules/swagger-typescript-api/node_modules/@biomejs/wasm-nodejs/biome_wasm.js:797:17)
at wasm://wasm/0365fcc6:wasm-function[12695]:0xb16[58](https://github.com/petercat-ai/WhiskerRAG/actions/runs/14572486083/job/40872220835#step:5:59)9
at wasm://wasm/0365fcc6:wasm-function[7238]:0x9eb62d
at wasm://wasm/0365fcc6:wasm-function[10858]:0xaf04d7
at wasm://wasm/0365fcc6:wasm-function[12683]:0xb1[60](https://github.com/petercat-ai/WhiskerRAG/actions/runs/14572486083/job/40872220835#step:5:61)ce
at wasm://wasm/0365fcc6:wasm-function[2947]:0x756e33
at wasm://wasm/0365fcc6:wasm-function[1[61](https://github.com/petercat-ai/WhiskerRAG/actions/runs/14572486083/job/40872220835#step:5:62)1]:0x5ad021
at wasm://wasm/0365fcc6:wasm-function[7494]:0x9f9533
at wasm://wasm/0365fcc6:wasm-function[4342]:0x88afd4
at wasm://wasm/0365fcc6:wasm-function[245]:0x20c99f
Thanks for the awesome tool first, it perfectly fits my project, and here's some detailed information of the issue.
By the way, 13.0.28 works, maybe reserve
prettier
as anothor formatter option cuz biome seems unstable ?Environment
Error Description
When trying to run OpenAPI code generation using swagger-typescript-api, the following error occurs:
The text was updated successfully, but these errors were encountered: