rhys1790R
Convex Community8mo ago
3 replies
rhys1790

Netlify Deployment Build Failures

Hi folks, having some issues with my build of convex generated files when deploying to netlify:

logs:
6:08:25 PM: Type error: Cannot find module '../../rugby321/convex/_generated/server' or its corresponding type declarations.
6:08:25 PM:   3 |   internalAction,
6:08:25 PM:   4 |   internalMutation,
6:08:25 PM: > 5 | } from "../../rugby321/convex/_generated/server";
6:08:25 PM:     |        ^
6:08:25 PM:   6 | import { v } from "convex/values";
6:08:25 PM:   7 | import { fetch } from "cross-fetch";
6:08:25 PM:   8 | import * as cheerio from "cheerio";
6:08:25 PM: Next.js build worker exited with code: 1 and signal: null
6:08:25 PM: ✖ 'npm run build' failed
6:08:25 PM: ​
6:08:25 PM: "build.command" failed                                        
6:08:25 PM: ────────────────────────────────────────────────────────────────
6:08:25 PM: ​
6:08:25 PM:   Error message
6:08:25 PM:   Command failed with exit code 1: npx convex deploy --cmd 'npm run build' (https://ntl.fyi/exit-code-1)


I am tried a number of different build commands with no success.

Have also checked that the generated files have been commited into git.
Was this page helpful?