WindmillWWindmill
Powered by
ni_kaN
Windmill•12mo ago
ni_ka

script runs fine, but deployment fails with Could not resolve: "typescript".

Hi, see the error message below!
job=0195f058-b1b3-8dc4-b026-3bbecc16134e tag=chromium worker=wk-reports-e4fded849859-PcTkC hostname=e4fded849859

bun install v1.2.4 (fd9a5ea6)
Resolving dependencies
Resolved, downloaded and extracted [186]
Saved lockfile
+ puppeteer@24.4.0
+ windmill-client@1.479.3
98 packages installed [1012.00ms]
74 |         typescript = require('typescript');
                                  ^
error: Could not resolve: "typescript". Maybe you need to "bun install"?
    at /tmp/windmill/wk-reports-e4fded849859-PcTkC/0195f058-b1b3-8dc4-b026-3bbecc16134e/node_modules/cosmiconfig/dist/loaders.js:74:30
103 |         typescript = (await import('typescript')).default;
                                         ^
error: Could not resolve: "typescript". Maybe you need to "bun install"?
    at /tmp/windmill/wk-reports-e4fded849859-PcTkC/0195f058-b1b3-8dc4-b026-3bbecc16134e/node_modules/cosmiconfig/dist/loaders.js:103:36

Bun v1.2.4 (Linux x64 baseline)
Non-zero exit status for bun build: 1
job=0195f058-b1b3-8dc4-b026-3bbecc16134e tag=chromium worker=wk-reports-e4fded849859-PcTkC hostname=e4fded849859

bun install v1.2.4 (fd9a5ea6)
Resolving dependencies
Resolved, downloaded and extracted [186]
Saved lockfile
+ puppeteer@24.4.0
+ windmill-client@1.479.3
98 packages installed [1012.00ms]
74 |         typescript = require('typescript');
                                  ^
error: Could not resolve: "typescript". Maybe you need to "bun install"?
    at /tmp/windmill/wk-reports-e4fded849859-PcTkC/0195f058-b1b3-8dc4-b026-3bbecc16134e/node_modules/cosmiconfig/dist/loaders.js:74:30
103 |         typescript = (await import('typescript')).default;
                                         ^
error: Could not resolve: "typescript". Maybe you need to "bun install"?
    at /tmp/windmill/wk-reports-e4fded849859-PcTkC/0195f058-b1b3-8dc4-b026-3bbecc16134e/node_modules/cosmiconfig/dist/loaders.js:103:36

Bun v1.2.4 (Linux x64 baseline)
Non-zero exit status for bun build: 1
WindmillJoin
3,388Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

We're live here https://discord.com/channels/930051556043276338/1278977038430240813

henri-c · 6d ago

rubenf

Infrastructure as code

rubenf · 4w ago

rubenf

As we're preparing for a new Windmill sandbox SDK, we took the opportunity **to open-source NSJAIL sandboxing** and make it available in CE and easier to set. In 1.634.0, just set nsjail to benefit from the tightest security and isolation per job. It's constraining so no need to use it unless you need but now you won't be restricted in security for CE if you need to.

rubenf · 4w ago

Similar Threads

Script runs perfect when ran manually but it fails intermittently when add it to schedule
Pankaj ThakurPPankaj Thakur / help
13mo ago
[FIXED] TS Bun Deployment Fails with with googleapis lib
StefanSStefan / help
17mo ago
Connection did not resolve
yawniekYyawniek / help
3y ago
Schedule not followed, skips runs
ByronBByron / help
13mo ago