brainlife / ezbids

A web service for semi-automated conversion of raw imaging data to BIDS
https://brainlife.io/ezbids
MIT License
26 stars 13 forks source link

[BUG] Fixes "Transpile to JS Error" in API container; revert node version #128

Closed bendhouseart closed 2 months ago

bendhouseart commented 2 months ago

Fixes issue observed when running docker compose build && docker compose up:

brainlife_ezbids-api   | ../node_modules/@types/node/globals.d.ts(73,13): error TS2403: Subsequent variable declarations must have the same type. Variable ‘AbortSignal’ must be of type ‘{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; any(signals: AbortSignal[]): AbortSignal; timeout(milliseconds: number): AbortSignal; }‘, but here has type ‘{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }‘.
brainlife_ezbids-api   |
brainlife_ezbids-api   |
brainlife_ezbids-api   | 6:35:08 PM - Found 1 error. Watching for file changes.
brainlife_ezbids-api   | URGENT: TRANSPILE TO JAVASCRIPT FAILED! & exit 5

This seems to have arisen following a change in node version from ^20 to ~16, this PR fixes that.