{"record":{"id":"4ca3eb5102ad0cc5","repo":"anomalyco/sst","slug":"not-implemented","errorCode":null,"errorMessage":"not implemented","messagePattern":"not implemented","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/runtime/worker/worker.go","lineNumber":325,"sourceCode":"\t\tif err != nil {\n\t\t\tcontinue\n\t\t}\n\t\tif absPath == file {\n\t\t\treturn true\n\t\t}\n\t}\n\n\treturn false\n}\n\n// ShouldRunEagerly returns true for Cloudflare Workers - workers restart immediately after rebuild.\n// Workers use esbuild's metafile for precise per-function dependency tracking.\nfunc (r *Runtime) ShouldRunEagerly() bool {\n\treturn true\n}\n\nfunc (r *Runtime) Run(ctx context.Context, input *runtime.RunInput) (runtime.Worker, error) {\n\treturn nil, fmt.Errorf(\"not implemented\")\n}\n\nvar NODE_BUILTINS = map[string]bool{\n\t\"assert\":              true,\n\t\"async_hooks\":         true,\n\t\"buffer\":              true,\n\t\"child_process\":       true,\n\t\"cluster\":             true,\n\t\"console\":             true,\n\t\"constants\":           true,\n\t\"crypto\":              true,\n\t\"dgram\":               true,\n\t\"diagnostics_channel\": true,\n\t\"dns\":                 true,\n\t\"domain\":              true,\n\t\"events\":              true,\n\t\"fs\":                  true,\n\t\"http\":                true,","sourceCodeStart":307,"sourceCodeEnd":343,"githubUrl":"https://github.com/anomalyco/sst/blob/a0bd20f762883e72a35caccb4896c42ce5b3f707/pkg/runtime/worker/worker.go#L307-L343","documentation":"`Runtime.Run` for the `worker` runtime is intentionally unimplemented — Cloudflare Workers cannot be executed locally through this code path, so calling it always returns \"not implemented\". It is a hard stub, not a transient failure.","triggerScenarios":"Any code path invoking `Run` on the worker runtime — e.g. attempting `sst dev` with a worker component in a mode that requires local process execution instead of the eager-build/metafile path.","commonSituations":"Trying to run `sst dev --mode=basic` (or a legacy dev flow) against `sst.aws.Worker` components; tooling that programmatically calls Run on all runtimes.","solutions":["Use the default full `sst dev` mode, which builds workers eagerly via esbuild metafiles instead of calling Run","Run/deploy workers to a real Cloudflare environment instead of local process execution","Wrap worker components behind a feature that doesn't require local execution during dev"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"// detect worker components and avoid local-run dev modes\nconst isWorker = componentType === \"sst.aws.Worker\";\nif (isWorker && devMode === \"basic\") {\n  console.warn(\"worker runtime does not support local Run; use full sst dev\");\n}","typeGuard":null,"tryCatchPattern":"try {\n  await startDev({ mode: \"basic\" });\n} catch (e) {\n  if (/not implemented/.test(String(e))) {\n    await startDev({ mode: \"full\" }); // workers require eager build path\n  } else throw e;\n}","preventionTips":["Use default (full) `sst dev` when the app contains worker components","Do not invoke Runtime.Run programmatically for the worker runtime","Deploy workers to Cloudflare for execution instead of relying on local process execution"],"tags":["worker","cloudflare","dev","unimplemented"],"backgroundTag":"not-implemented","analyzedSha":"a0bd20f762883e72a35caccb4896c42ce5b3f707","analyzedAt":"2026-08-30T11:26:00.383Z","schemaVersion":2},"datasetVersion":"2026-08-30T13:17:10.514Z"}