Skip to content

Commit 78c5392

Browse files
committed
fix(teamcity): handle exceptions for node 18 by disabling experimental fetch
1 parent fe8f297 commit 78c5392

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.teamcity/builds/kotlinlang/buidTypes/BuildJsAssets.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ object BuildJsAssets: BuildType({
2626
#!/bin/bash
2727
set -e -x -u
2828
29+
# for node:18 we caught exception:
30+
# unhandledRejection TypeError: Failed to parse URL from /mnt/agent/work/75f6fbaeb8c41e25/node_modules/@wasm-codecs/mozjpeg/lib/mozjpeg.wasm
31+
# at Object.fetch (node:internal/deps/undici/undici:11730:11) {
32+
# [cause]: TypeError: Invalid URL
33+
export NODE_OPTIONS=--no-experimental-fetch
34+
2935
yarn install --frozen-lockfile
3036
3137
NODE_ENV=production yarn run build

0 commit comments

Comments
 (0)