Skip to content

[Bug] Not able to deploy on Vercel after deleting workflow #691

@raviranjan31

Description

@raviranjan31

The Vercel build is still trying to resolve a workflow file that has been deleted from the codebase.

Locally, I saw the same error, but deleting the .next folder resolved it. On Vercel there doesn’t appear to be a way to clear the equivalent build cache, so the issue persists across deployments.

Error log from Vercel:

text

▲ Next.js 16.1.1 (Turbopack)
- Experiments (use with caution):
  ⨯ turbopackScopeHoisting
  Creating an optimized production build ...
✘ [ERROR] Could not resolve "./src/workflows/create-requisition-share-link/definition.ts"
    virtual-entry.js:10:7:
      10 │ import './src/workflows/create-requisition-share-link/definition.ts';

Could you investigate why this stale workflow reference is still being picked up during the Vercel build, and whether there’s a way to force a clean build (similar to deleting .next locally)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions