For agents sdk, using the starter kit, when doing npm update. It started to fail. I had to add impo

For agents sdk, using the starter kit, when doing npm update. It started to fail. I had to add

import { defineWorkersConfig } from "@cloudflare/vitest-pool-workers/config";

export default defineWorkersConfig({
environments: {
ssr: {
keepProcessEnv: true,
},
},
test: {
poolOptions: {
workers: {
wrangler: { configPath: "./wrangler.jsonc" },
},
},
},
resolve: {
alias: {
ajv: 'ajv/dist/ajv.min.js',
},
},
optimizeDeps: {
include: ['ajv'],
},
});


To vitest to make it work again!
Was this page helpful?