-
-
Notifications
You must be signed in to change notification settings - Fork 705
bug: cloudflare-worker deploy sqlite error #32
Copy link
Copy link
Closed
Labels
Milestone
Description
Checklist
- I have checked open and closed issues
Deployment Method
Cloudflare Workers
Addon Version
1.8.4
Bug Area
Build Proces
Device/Browser/OS/Stremio Version
No response
Bug Description / Steps to Reproduce
PS C:\Users\Administrator\AIOStreams> npm run deploy:cloudflare-worker
> aiostreams@1.8.4 deploy:cloudflare-worker
> npm -w packages/cloudflare-worker run deploy
> @aiostreams/cloudflare-worker@1.8.4 deploy
> wrangler deploy
Cloudflare collects anonymous telemetry about your usage of Wrangler. Learn more at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md
⛅️ wrangler 3.100.0 (update available 3.103.2)
---------------------------------------------------------
X [ERROR] Build failed with 1 error:
X [ERROR] Could not resolve "node:sqlite"
../../node_modules/undici/lib/cache/sqlite-cache-store.js:106:29:
106 │ DatabaseSync = require('node:sqlite').DatabaseSync
╵ ~~~~~~~~~~~~~
You can mark the path "node:sqlite" as external to exclude it from the bundle, which will remove
this error. You can also surround this "require" call with a try/catch block to handle this
failure at run-time instead of bundle-time.
🪵 Logs were written to "C:\Users\Administrator\AppData\Roaming\xdg.config\.wrangler\logs\wrangler-2025-01-20_00-40-49_403.log"
npm ERR! Lifecycle script `deploy` failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: @aiostreams/cloudflare-worker@1.8.4
npm ERR! at location: C:\Users\Administrator\AIOStreams\packages\cloudflare-worker
Expected Behavior
No response
Screenshots
No response
Debugging Checklist
- If applicable, I have included server logs
- If applicable, I have included MediaFlow logs
Reactions are currently unavailable