WindmillWWindmill
Powered by
ni_kaN
Windmill•11mo 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,362Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

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