You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix the `tarballs` Vercel project so workspace dependencies are built before packing — without this, every preview tarball ships with an empty `dist/` directory and downstream installs fail to resolve `dist/*` entry points.
Friendlier workflow error messages. New `SerializationError`, `WorkflowBuildError`, and structured context-violation classes (e.g. `NotInWorkflowContextError`) with actionable hints and docs links applied to user-facing throw sites; `FatalError.is()` recognizes any error with `fatal: true` so context violations and serialization failures now fail fast instead of burning retry attempts. Runtime logs are namespaced under `[workflow-sdk]` and gain `errorAttribution` (`user` vs `sdk`) plus class-aware hints
@@ -343,8 +344,11 @@ export abstract class BaseBuilder {
343
344
}
344
345
345
346
if(throwOnError){
346
-
thrownewError(
347
-
`Build failed during ${phase}:\n${errorMessages.join('\n')}`
347
+
thrownewWorkflowBuildError(
348
+
`Build failed during ${phase}:\n${errorMessages.join('\n')}`,
349
+
{
350
+
hint: `Review the esbuild errors above — they come from the ${phase} bundle. Fix the offending source files and re-run the build.`,
351
+
}
348
352
);
349
353
}
350
354
}
@@ -421,13 +425,12 @@ export abstract class BaseBuilder {
421
425
dirname(outfile),
422
426
'workflow/internal/builtins'
423
427
).catch((err)=>{
424
-
thrownewError(
425
-
[
426
-
chalk.red('Failed to resolve built-in steps sources.'),
427
-
`${chalk.yellow.bold('hint:')} run \`${chalk.cyan.italic('npm install workflow')}\` to resolve this issue.`,
428
-
'',
429
-
`Caused by: ${chalk.red(String(err))}`,
430
-
].join('\n')
428
+
thrownewWorkflowBuildError(
429
+
`Failed to resolve built-in steps sources.\n\nCaused by: ${String(err)}`,
430
+
{
431
+
hint: 'run `pnpm install workflow` to resolve this issue.',
432
+
cause: err,
433
+
}
431
434
);
432
435
});
433
436
@@ -856,7 +859,9 @@ export abstract class BaseBuilder {
856
859
!interimBundle.outputFiles||
857
860
interimBundle.outputFiles.length===0
858
861
){
859
-
thrownewError('No output files generated from esbuild');
862
+
thrownewWorkflowBuildError('No output files generated from esbuild',{
863
+
hint: 'This usually indicates a misconfigured entry point or an empty workflow directory. Check that your workflow files contain a `"use workflow"` or `"use step"` directive.',
864
+
});
860
865
}
861
866
862
867
// Serde compliance warnings: check if workflow bundle has Node.js imports
0 commit comments