ai-chatbot icon indicating copy to clipboard operation
ai-chatbot copied to clipboard

Deployment issue from template and readme links

Open jb-dev1 opened this issue 10 months ago • 2 comments

Attempting to deploy either from the template link button here or from the readme deploy link here results in failure with this error:

Error: The Edge Function "middleware" is referencing unsupported modules:
- __vc__ns__/0/middleware.js: @/app/(auth)/auth.config

Full log in next message.

jb-dev1 avatar Feb 18 '25 21:02 jb-dev1

[14:27:32.864] Running build in Washington, D.C., USA (East) – iad1 [14:27:33.497] Cloning gitlab.com/newco2025/ai-chatbot-from-source (Branch: main, Commit: d9e142b) [14:27:34.073] Previous build cache not available [14:27:34.541] Cloning completed: 1.043s [14:27:34.928] Running "vercel build" [14:27:35.361] Vercel CLI 41.1.3 [14:27:36.221] Detected pnpm-lock.yaml version 9 generated by [email protected] [14:27:36.240] Installing dependencies... [14:27:37.012] Lockfile is up to date, resolution step is skipped [14:27:37.105] Progress: resolved 1, reused 0, downloaded 0, added 0 [14:27:37.267] Packages: +657 [14:27:37.269] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [14:27:38.107] Progress: resolved 657, reused 0, downloaded 92, added 88 [14:27:39.110] Progress: resolved 657, reused 0, downloaded 122, added 109 [14:27:40.112] Progress: resolved 657, reused 0, downloaded 131, added 122 [14:27:41.112] Progress: resolved 657, reused 0, downloaded 155, added 145 [14:27:42.112] Progress: resolved 657, reused 0, downloaded 167, added 154 [14:27:43.113] Progress: resolved 657, reused 0, downloaded 249, added 238 [14:27:44.113] Progress: resolved 657, reused 0, downloaded 435, added 422 [14:27:45.115] Progress: resolved 657, reused 0, downloaded 616, added 611 [14:27:45.327] Progress: resolved 657, reused 0, downloaded 657, added 657, done [14:27:45.549] .../[email protected]/node_modules/esbuild postinstall$ node install.js [14:27:45.550] .../[email protected]/node_modules/esbuild postinstall$ node install.js [14:27:45.550] .../[email protected]/node_modules/sharp install$ node install/check [14:27:45.551] .../[email protected]/node_modules/esbuild postinstall$ node install.js [14:27:46.377] .../node_modules/@biomejs/biome postinstall$ node scripts/postinstall.js [14:27:46.458] .../[email protected]/node_modules/esbuild postinstall: Done [14:27:46.478] .../[email protected]/node_modules/esbuild postinstall: Done [14:27:46.509] .../node_modules/@biomejs/biome postinstall: Done [14:27:46.525] .../node_modules/bufferutil install$ node-gyp-build [14:27:46.554] .../[email protected]/node_modules/esbuild postinstall: Done [14:27:46.585] .../[email protected]/node_modules/sharp install: Done [14:27:46.653] .../node_modules/bufferutil install: Done [14:27:46.863] [14:27:46.863] dependencies: [14:27:46.863] + @ai-sdk/fireworks 0.1.8 [14:27:46.863] + @ai-sdk/openai 1.1.9 [14:27:46.864] + @codemirror/lang-javascript 6.2.2 [14:27:46.864] + @codemirror/lang-python 6.1.6 [14:27:46.864] + @codemirror/state 6.5.0 [14:27:46.864] + @codemirror/theme-one-dark 6.1.2 [14:27:46.864] + @codemirror/view 6.35.3 [14:27:46.864] + @radix-ui/react-alert-dialog 1.1.2 [14:27:46.864] + @radix-ui/react-dialog 1.1.2 [14:27:46.864] + @radix-ui/react-dropdown-menu 2.1.2 [14:27:46.864] + @radix-ui/react-icons 1.3.0 [14:27:46.864] + @radix-ui/react-label 2.1.0 [14:27:46.864] + @radix-ui/react-select 2.1.2 [14:27:46.864] + @radix-ui/react-separator 1.1.0 [14:27:46.864] + @radix-ui/react-slot 1.1.0 [14:27:46.864] + @radix-ui/react-tooltip 1.1.3 [14:27:46.864] + @radix-ui/react-visually-hidden 1.1.0 [14:27:46.864] + @vercel/analytics 1.3.2 [14:27:46.864] + @vercel/blob 0.24.1 [14:27:46.864] + @vercel/postgres 0.10.0 [14:27:46.864] + ai 4.1.17 [14:27:46.864] + bcrypt-ts 5.0.2 [14:27:46.864] + class-variance-authority 0.7.0 [14:27:46.864] + classnames 2.5.1 [14:27:46.864] + clsx 2.1.1 [14:27:46.864] + codemirror 6.0.1 [14:27:46.864] + date-fns 4.1.0 [14:27:46.864] + diff-match-patch 1.0.5 [14:27:46.864] + dotenv 16.4.5 [14:27:46.864] + drizzle-orm 0.34.1 [14:27:46.864] + fast-deep-equal 3.1.3 [14:27:46.864] + framer-motion 11.11.10 [14:27:46.864] + geist 1.3.1 [14:27:46.864] + lucide-react 0.446.0 [14:27:46.865] + nanoid 5.0.8 [14:27:46.865] + next 15.0.3-canary.2 [14:27:46.865] + next-auth 5.0.0-beta.25 [14:27:46.865] + next-themes 0.3.0 [14:27:46.865] + orderedmap 2.1.1 [14:27:46.865] + papaparse 5.5.2 [14:27:46.865] + postgres 3.4.5 [14:27:46.865] + prosemirror-example-setup 1.2.3 [14:27:46.865] + prosemirror-inputrules 1.4.0 [14:27:46.865] + prosemirror-markdown 1.13.1 [14:27:46.865] + prosemirror-model 1.23.0 [14:27:46.865] + prosemirror-schema-basic 1.2.3 [14:27:46.865] + prosemirror-schema-list 1.4.1 [14:27:46.865] + prosemirror-state 1.4.3 [14:27:46.865] + prosemirror-view 1.35.0 [14:27:46.865] + react 19.0.0-rc-45804af1-20241021 [14:27:46.865] + react-data-grid 7.0.0-beta.47 [14:27:46.865] + react-dom 19.0.0-rc-45804af1-20241021 [14:27:46.865] + react-markdown 9.0.1 [14:27:46.865] + react-resizable-panels 2.1.7 [14:27:46.865] + remark-gfm 4.0.0 [14:27:46.865] + server-only 0.0.1 [14:27:46.865] + sonner 1.5.0 [14:27:46.865] + swr 2.2.5 [14:27:46.865] + tailwind-merge 2.5.4 [14:27:46.865] + tailwindcss-animate 1.0.7 [14:27:46.865] + usehooks-ts 3.1.0 [14:27:46.866] + zod 3.23.8 [14:27:46.866] [14:27:46.866] devDependencies: [14:27:46.866] + @biomejs/biome 1.9.4 [14:27:46.866] + @tailwindcss/typography 0.5.15 [14:27:46.866] + @types/d3-scale 4.0.8 [14:27:46.866] + @types/node 22.9.0 [14:27:46.866] + @types/papaparse 5.3.15 [14:27:46.866] + @types/pdf-parse 1.1.4 [14:27:46.866] + @types/react 18.3.12 [14:27:46.866] + @types/react-dom 18.3.1 [14:27:46.866] + drizzle-kit 0.25.0 [14:27:46.866] + eslint 8.57.1 [14:27:46.866] + eslint-config-next 14.2.5 [14:27:46.866] + eslint-config-prettier 9.1.0 [14:27:46.866] + eslint-import-resolver-typescript 3.6.3 [14:27:46.866] + eslint-plugin-tailwindcss 3.17.5 [14:27:46.866] + postcss 8.4.47 [14:27:46.866] + tailwindcss 3.4.14 [14:27:46.866] + tsx 4.19.2 [14:27:46.866] + typescript 5.6.3 [14:27:46.866] [14:27:46.917] Done in 10.5s [14:27:46.989] Running "pnpm run build" [14:27:47.469] [14:27:47.470] > [email protected] build /vercel/path0 [14:27:47.470] > tsx lib/db/migrate && next build [14:27:47.470] [14:27:49.438] ⏳ Running migrations... [14:27:49.900] { [14:27:49.901] severity_local: 'NOTICE', [14:27:49.901] severity: 'NOTICE', [14:27:49.901] code: '42622', [14:27:49.901] message: 'identifier "Suggestion_documentId_documentCreatedAt_Document_id_createdAt_fk" will be truncated to "Suggestion_documentId_documentCreatedAt_Document_id_createdAt_f"', [14:27:49.901] where: 'compilation of PL/pgSQL function "inline_code_block" near line 1', [14:27:49.901] file: 'scansup.c', [14:27:49.901] line: '99', [14:27:49.901] routine: 'truncate_identifier' [14:27:49.901] } [14:27:49.901] { [14:27:49.902] severity_local: 'NOTICE', [14:27:49.902] severity: 'NOTICE', [14:27:49.902] code: '42622', [14:27:49.902] message: 'identifier "Suggestion_documentId_documentCreatedAt_Document_id_createdAt_fk" will be truncated to "Suggestion_documentId_documentCreatedAt_Document_id_createdAt_f"', [14:27:49.902] position: '15', [14:27:49.902] file: 'scansup.c', [14:27:49.902] line: '99', [14:27:49.902] routine: 'truncate_identifier' [14:27:49.902] } [14:27:49.902] { [14:27:49.902] severity_local: 'NOTICE', [14:27:49.902] severity: 'NOTICE', [14:27:49.902] code: '42622', [14:27:49.902] message: 'identifier "Suggestion_documentId_documentCreatedAt_Document_id_createdAt_fk" will be truncated to "Suggestion_documentId_documentCreatedAt_Document_id_createdAt_f"', [14:27:49.902] where: 'SQL statement "ALTER TABLE "Suggestion" ADD CONSTRAINT "Suggestion_documentId_documentCreatedAt_Document_id_createdAt_fk" FOREIGN KEY ("documentId","documentCreatedAt") REFERENCES "public"."Document"("id","createdAt") ON DELETE no action ON UPDATE no action"\n' + [14:27:49.902] 'PL/pgSQL function inline_code_block line 2 at SQL statement', [14:27:49.902] file: 'scansup.c', [14:27:49.902] line: '99', [14:27:49.902] routine: 'truncate_identifier' [14:27:49.902] } [14:27:50.157] ✅ Migrations completed in 719 ms [14:27:50.964] Attention: Next.js now collects completely anonymous telemetry regarding usage. [14:27:50.965] This information is used to shape Next.js' roadmap and prioritize features. [14:27:50.965] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: [14:27:50.965] https://nextjs.org/telemetry [14:27:50.965] [14:27:51.081] ▲ Next.js 15.0.3-canary.2 [14:27:51.082] - Experiments (use with caution): [14:27:51.082] · ppr [14:27:51.082] [14:27:51.115] Creating an optimized production build ... [14:28:36.673] ✓ Compiled successfully [14:28:36.678] Linting and checking validity of types ... [14:28:52.325] Collecting page data ... [14:28:56.832] Generating static pages (0/16) ... [14:28:58.533] Generating static pages (4/16) [14:28:58.533] Generating static pages (8/16) [14:28:58.533] Generating static pages (12/16) [14:28:58.533] ✓ Generating static pages (16/16) [14:28:59.425] Finalizing page optimization ... [14:28:59.427] Collecting build traces ... [14:29:09.624] [14:29:09.647] Route (app) Size First Load JS [14:29:09.647] ┌ ƒ / 164 B 683 kB [14:29:09.647] ├ ○ /_not-found 898 B 101 kB [14:29:09.647] ├ ƒ /api/auth/[...nextauth] 153 B 101 kB [14:29:09.647] ├ ƒ /api/chat 153 B 101 kB [14:29:09.647] ├ ƒ /api/document 153 B 101 kB [14:29:09.647] ├ ƒ /api/files/upload 153 B 101 kB [14:29:09.647] ├ ƒ /api/history 153 B 101 kB [14:29:09.647] ├ ƒ /api/suggestions 153 B 101 kB [14:29:09.647] ├ ƒ /api/vote 151 B 101 kB [14:29:09.647] ├ ◐ /chat/[id] 164 B 683 kB [14:29:09.647] ├ └ /chat/[id] [14:29:09.647] ├ ○ /login 2.65 kB 137 kB [14:29:09.647] ├ ○ /opengraph-image-12cog0.png 0 B 0 B [14:29:09.647] ├ ○ /register 2.67 kB 137 kB [14:29:09.647] └ ○ /twitter-image-12cog0.png 0 B 0 B [14:29:09.648] + First Load JS shared by all 101 kB [14:29:09.648] ├ chunks/3b878c1f-2a70dee798c76edf.js 53 kB [14:29:09.648] ├ chunks/481-cc5bb5812fb2cdb2.js 45.7 kB [14:29:09.648] └ other shared chunks (total) 1.93 kB [14:29:09.648] [14:29:09.648] [14:29:09.648] ƒ Middleware 82 kB [14:29:09.648] [14:29:09.648] ○ (Static) prerendered as static content [14:29:09.648] ◐ (Partial Prerender) prerendered as static HTML with dynamic server-streamed content [14:29:09.648] ƒ (Dynamic) server-rendered on demand [14:29:09.648] [14:29:10.061] Using TypeScript 5.6.3 (local user-provided) [14:29:13.723] Build Completed in /vercel/output [2m] [14:29:13.918] Deploying outputs... [14:29:15.044] Error: The Edge Function "middleware" is referencing unsupported modules: [14:29:15.044] - vc__ns/0/middleware.js: @/app/(auth)/auth.config [14:29:15.373]

jb-dev1 avatar Feb 18 '25 21:02 jb-dev1

Did you find a solution to this?

ianwensink avatar Feb 25 '25 21:02 ianwensink