2025-05-12
FAIL tests/db.test.ts [ tests/db.test.ts ]
Error: Failed to load url cloudflare:workers (resolved id: cloudflare:workers) in /Users/kenji/home/project/announcing/announcing.202312/packages/notification/src/local/localBindings.ts. Does the file exist?
❯ loadAndTransform ../../node_modules/.pnpm/vite@6.3.2_@types+node@22.14.1_jiti@2.4.2_sass@1.86.3_terser@5.36.0_tsx@4.19.3/node_modules/vite/dist/node/chunks/dep-DG3BLbPj.js:35668:17
localBindings.ts で以下のような変更がされていて、戻したら直った。
- import type { WorkflowStep, WorkflowStepConfig } from 'cloudflare:workers';
+ import { type WorkflowStep, type WorkflowStepConfig } from 'cloudflare:workers';