vitestエラー Does the file exist?
Kenji Suzuki

Kenji Suzuki @suzulabo

About: Just a programmer

Location:
Japan, Hiroshima
Joined:
Aug 17, 2025

vitestエラー Does the file exist?

Publish Date: Aug 20
0 0
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
Enter fullscreen mode Exit fullscreen mode

localBindings.ts で以下のような変更がされていて、戻したら直った。

- import type { WorkflowStep, WorkflowStepConfig } from 'cloudflare:workers';
+ import { type WorkflowStep, type WorkflowStepConfig } from 'cloudflare:workers';
Enter fullscreen mode Exit fullscreen mode

Comments 0 total

    Add comment