Skip to content

Conversation

@adriandlam
Copy link
Member

No description provided.

@vercel
Copy link
Contributor

vercel bot commented Oct 31, 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 5, 2025 5:01am
example-nextjs-workflow-webpack Ready Ready Preview Comment Nov 5, 2025 5:01am
example-workflow Ready Ready Preview Comment Nov 5, 2025 5:01am
workbench-nitro-workflow Ready Ready Preview Comment Nov 5, 2025 5:01am
workbench-nuxt-workflow Ready Ready Preview Comment Nov 5, 2025 5:01am
workbench-sveltekit-workflow Ready Ready Preview Comment Nov 5, 2025 5:01am
workbench-vite-workflow Ready Ready Preview Comment Nov 5, 2025 5:01am
workflow-docs Ready Ready Preview Comment Nov 5, 2025 5:01am

@changeset-bot
Copy link

changeset-bot bot commented Oct 31, 2025

⚠️ No Changeset found

Latest commit: b18de68

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

@@ -0,0 +1,152 @@
import { createFileRoute } from '@tanstack/react-router';
import { allWorkflows } from '_workflows.js';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
import { allWorkflows } from '_workflows.js';
import { allWorkflows } from '../../../_workflows.js';

The import statement uses a bare module name '_workflows.js' that cannot be resolved. This should use a relative path to the _workflows.ts file at the project root.

View Details

Analysis

Incorrect bare module import in workbench/tanstack/src/routes/api/trigger.ts fails module resolution

What fails: The import statement on line 2 of workbench/tanstack/src/routes/api/trigger.ts uses a bare module name '_workflows.js' that cannot be resolved by TypeScript or Node.js module resolution.

How to reproduce:

cd workbench/tanstack
pnpm exec tsc src/routes/api/trigger.ts --noEmit

Result: TypeScript error TS2307: Cannot find module '_workflows.js' or its corresponding type declarations.

Expected: Import should use a relative path to the _workflows.ts file located at the root of the workbench. Since the file is at src/routes/api/trigger.ts and _workflows.ts is at the root, the correct path is ../../../_workflows.js (three levels up: api/routes/src/ → root).

This matches the pattern used in other workbenches where similar route handlers import _workflows using relative paths (e.g., workbench/hono/server.ts uses ./_workflows.js, workbench/nitro-v2/server/api/trigger.post.ts uses ../_workflows.js).

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.

2 participants