Skip to content

Conversation

@atinux
Copy link
Member

@atinux atinux commented Nov 3, 2025

Add support for workflow/nuxt:

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['workflow/nuxt'],
});

Added documentation page + updated landing page for available frameworks.

@changeset-bot
Copy link

changeset-bot bot commented Nov 3, 2025

🦋 Changeset detected

Latest commit: 8a164fc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@workflow/nuxt Patch
workflow Patch
@workflow/ai Patch
@workflow/world-testing Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Contributor

vercel bot commented Nov 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview Comment Nov 7, 2025 11:50pm
example-nextjs-workflow-webpack Ready Ready Preview Comment Nov 7, 2025 11:50pm
example-workflow Ready Ready Preview Comment Nov 7, 2025 11:50pm
workbench-nitro-workflow Ready Ready Preview Comment Nov 7, 2025 11:50pm
workbench-nuxt-workflow Ready Ready Preview Comment Nov 7, 2025 11:50pm
workbench-sveltekit-workflow Ready Ready Preview Comment Nov 7, 2025 11:50pm
workbench-vite-workflow Ready Ready Preview Comment Nov 7, 2025 11:50pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
workflow-docs Skipped Skipped Nov 7, 2025 11:50pm

@socket-security
Copy link

socket-security bot commented Nov 3, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​svelte@​5.43.2 ⏵ 5.43.399 +110087 +198100
Addednpm/​@​nuxt/​module-builder@​1.0.29810010093100
Addednpm/​@​nuxt/​kit@​4.2.09910010094100
Addednpm/​@​nuxt/​schema@​4.2.09910010094100
Addednpm/​nuxt@​4.2.09710010094100

View full report

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
Copy link
Contributor

@vercel vercel bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The Nuxt module incorrectly references 'workflow/nitro' when registering a Nitro module, but it should reference '@workflow/nitro' directly to avoid module resolution issues during the build process.

View Details
📝 Patch Details
diff --git a/packages/nuxt/src/module.ts b/packages/nuxt/src/module.ts
index 1002d59..9777a12 100644
--- a/packages/nuxt/src/module.ts
+++ b/packages/nuxt/src/module.ts
@@ -14,8 +14,8 @@ export default defineNuxtModule<ModuleOptions>({
   setup(_options, nuxt) {
     nuxt.options.nitro ||= {};
     nuxt.options.nitro.modules ||= [];
-    if (!nuxt.options.nitro.modules.includes('workflow/nitro')) {
-      nuxt.options.nitro.modules.push('workflow/nitro');
+    if (!nuxt.options.nitro.modules.includes('@workflow/nitro')) {
+      nuxt.options.nitro.modules.push('@workflow/nitro');
     }
   },
 });
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b305d06..1542d93 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -516,6 +516,9 @@ importers:
       '@workflow/nitro':
         specifier: workspace:*
         version: link:../nitro
+      workflow:
+        specifier: workspace:*
+        version: link:../workflow
     devDependencies:
       '@nuxt/module-builder':
         specifier: ^1.0.2

Analysis

Nuxt build fails due to incorrect module reference

What fails: The @workflow/nuxt package build fails during the nuxt-module-build step when trying to resolve the module 'workflow/nitro'

How to reproduce:

cd packages/nuxt
pnpm run build

Result:

ERROR  Cannot find module '/vercel/sandbox/primary/node_modules/.pnpm/node_modules/workflow/dist/nitro.js'

The error occurs because the Nuxt module tries to register 'workflow/nitro' as a Nitro module, but should reference '@workflow/nitro' directly instead.

@atinux atinux merged commit fb8153b into main Nov 8, 2025
35 checks passed
@atinux atinux deleted the feat/nuxt branch November 8, 2025 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants