-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
click Deploy button and encounter error that cannot find prisma. May i Not setup prisma initial , what should i do?
Follow is full error log:
[20:06:04.569] Running build in Washington, D.C., USA (East) – iad1
[20:06:04.569] Build machine configuration: 2 cores, 8 GB
[20:06:04.582] Cloning github.com/CreateSun/flux-ai-image (Branch: main, Commit: aecabf0)
[20:06:04.751] Previous build caches not available
[20:06:05.153] Cloning completed: 570.000ms
[20:06:05.625] Running "vercel build"
[20:06:06.053] Vercel CLI 42.2.0
[20:06:06.443] Detected `pnpm-lock.yaml` 9 which may be generated by pnpm@9.x or pnpm@10.x
[20:06:06.444] Using pnpm@10.x based on project creation date
[20:06:06.444] To use pnpm@9.x, manually opt in using corepack (https://vercel.com/docs/deployments/configure-a-build#corepack)
[20:06:06.467] Installing dependencies...
[20:06:07.472] Lockfile is up to date, resolution step is skipped
[20:06:07.604] Progress: resolved 1, reused 0, downloaded 0, added 0
[20:06:07.694] Packages: +839
[20:06:07.694] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[20:06:08.605] Progress: resolved 839, reused 0, downloaded 63, added 20
[20:06:09.606] Progress: resolved 839, reused 0, downloaded 211, added 84
[20:06:10.608] Progress: resolved 839, reused 0, downloaded 346, added 147
[20:06:11.609] Progress: resolved 839, reused 0, downloaded 351, added 148
[20:06:12.609] Progress: resolved 839, reused 0, downloaded 366, added 152
[20:06:13.613] Progress: resolved 839, reused 0, downloaded 519, added 223
[20:06:14.612] Progress: resolved 839, reused 0, downloaded 605, added 259
[20:06:15.614] Progress: resolved 839, reused 0, downloaded 778, added 329
[20:06:16.615] Progress: resolved 839, reused 0, downloaded 837, added 351
[20:06:17.615] Progress: resolved 839, reused 0, downloaded 839, added 543
[20:06:18.615] Progress: resolved 839, reused 0, downloaded 839, added 603
[20:06:19.553] Progress: resolved 839, reused 0, downloaded 839, added 839, done
[20:06:19.954]
[20:06:19.955] dependencies:
[20:06:19.955] + @aws-sdk/client-s3 3.609.0
[20:06:19.955] + @gradio/client 1.4.0
[20:06:19.955] + @mdx-js/loader 3.0.1
[20:06:19.955] + @mdx-js/react 3.0.1
[20:06:19.955] + @next-auth/prisma-adapter 1.0.7
[20:06:19.955] + @next/mdx 14.2.4
[20:06:19.955] + @preline/theme-switch 2.4.1
[20:06:19.955] + @prisma/client 5.16.1
[20:06:19.955] + @radix-ui/react-avatar 1.1.0
[20:06:19.955] + @radix-ui/react-dialog 1.1.1
[20:06:19.955] + @radix-ui/react-dropdown-menu 2.1.1
[20:06:19.955] + @tailwindcss/typography 0.5.13
[20:06:19.955] + @types/mdx 2.0.13
[20:06:19.955] + await-to-js 3.0.0
[20:06:19.955] + axios 1.7.2
[20:06:19.955] + bcrypt 5.1.1
[20:06:19.956] + clipboard 2.0.11
[20:06:19.956] + clsx 2.1.1
[20:06:19.956] + copy-to-clipboard 3.3.3
[20:06:19.956] + dropzone 6.0.0-beta.2
[20:06:19.956] + formidable 3.5.1
[20:06:19.956] + framer-motion 11.3.22
[20:06:19.956] + image-size 1.1.1
[20:06:19.956] + lodash 4.17.21
[20:06:19.956] + lucide-react 0.379.0
[20:06:19.956] + mime-types 2.1.35
[20:06:19.956] + nanoid 5.0.7
[20:06:19.956] + next 14.2.3
[20:06:19.956] + next-auth 4.24.7
[20:06:19.956] + next-intl 3.15.3
[20:06:19.956] + preline 2.3.0
[20:06:19.957] + prisma 5.16.1
[20:06:19.957] + rc-pagination 4.2.0
[20:06:19.957] + react 18.3.1
[20:06:19.957] + react-dom 18.3.1
[20:06:19.957] + react-dropzone 14.2.3
[20:06:19.957] + react-grid-gallery 1.0.1
[20:06:19.957] + react-medium-image-zoom 5.2.8
[20:06:19.957] + replicate 0.30.2
[20:06:19.957] + sonner 1.5.0
[20:06:19.957] + tailwind-merge 2.3.0
[20:06:19.957]
[20:06:19.957] devDependencies:
[20:06:19.957] + @tailwindcss/forms 0.5.7
[20:06:19.957] + @types/formidable 3.4.5
[20:06:19.957] + @types/node 20.14.10
[20:06:19.957] + @types/react 18.3.3
[20:06:19.957] + @types/react-dom 18.3.0
[20:06:19.957] + eslint 8.57.0
[20:06:19.958] + eslint-config-next 14.2.3
[20:06:19.958] + postcss 8.4.39
[20:06:19.958] + remark-frontmatter 5.0.0
[20:06:19.958] + remark-mdx-frontmatter 5.0.0
[20:06:19.958] + tailwindcss 3.4.4
[20:06:19.958] + typescript 5.5.3
[20:06:19.958]
[20:06:19.958] ╭ Warning ─────────────────────────────────────────────────────────────────────╮
[20:06:19.958] │ │
[20:06:19.958] │ Ignored build scripts: @prisma/client, @prisma/engines, bcrypt, │
[20:06:19.958] │ bufferutil, msw, prisma. │
[20:06:19.959] │ Run "pnpm approve-builds" to pick which dependencies should be allowed │
[20:06:19.959] │ to run scripts. │
[20:06:19.959] │ │
[20:06:19.959] ╰──────────────────────────────────────────────────────────────────────────────╯
[20:06:19.959]
[20:06:19.997] Done in 13s using pnpm v10.11.0
[20:06:20.016] Detected Next.js version: 14.2.3
[20:06:20.071] Running "pnpm run build"
[20:06:20.355]
[20:06:20.355] > flux-ai-image@1.0.0 build /vercel/path0
[20:06:20.355] > next build
[20:06:20.355]
[20:06:20.961] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[20:06:20.962] This information is used to shape Next.js' roadmap and prioritize features.
[20:06:20.963] 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:
[20:06:20.963] https://nextjs.org/telemetry
[20:06:20.963]
[20:06:21.016] ▲ Next.js 14.2.3
[20:06:21.017]
[20:06:21.078] Creating an optimized production build ...
[20:06:40.322] Browserslist: caniuse-lite is outdated. Please run:
[20:06:40.322] npx update-browserslist-db@latest
[20:06:40.323] Why you should do it regularly: https://github.com/browserslist/update-db#readme
[20:06:42.647] ✓ Compiled successfully
[20:06:42.648] Skipping validation of types
[20:06:42.648] Linting ...
[20:06:45.459]
[20:06:45.459] ./components/AppleCardsCarousel.tsx
[20:06:45.459] 186:8 Warning: React Hook useEffect has a missing dependency: 'handleClose'. Either include it or remove the dependency array. react-hooks/exhaustive-deps
[20:06:45.460]
[20:06:45.460] ./components/ReactGridGallery/Gallery.tsx
[20:06:45.460] 47:11 Warning: Image elements must have an alt prop, either with meaningful text, or an empty string for decorative images. jsx-a11y/alt-text
[20:06:45.460]
[20:06:45.460] ./components/ReactGridGallery/Image.tsx
[20:06:45.460] 124:11 Warning: Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
[20:06:45.460] 124:11 Warning: img elements must have an alt prop, either with meaningful text, or an empty string for decorative images. jsx-a11y/alt-text
[20:06:45.460]
[20:06:45.460] info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
[20:06:45.460] Collecting page data ...
[20:06:45.921] Error: Cannot find module '.prisma/client/default'
[20:06:45.921] Require stack:
[20:06:45.922] - /vercel/path0/node_modules/.pnpm/@prisma+client@5.16.1_prisma@5.16.1/node_modules/@prisma/client/default.js
[20:06:45.922] - /vercel/path0/.next/server/app/api/auth/[...nextauth]/route.js
[20:06:45.922] - /vercel/path0/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/server/require.js
[20:06:45.922] - /vercel/path0/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/server/load-components.js
[20:06:45.922] - /vercel/path0/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/utils.js
[20:06:45.922] - /vercel/path0/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/worker.js
[20:06:45.923] - /vercel/path0/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/compiled/jest-worker/processChild.js
[20:06:45.923] at Function.<anonymous> (node:internal/modules/cjs/loader:1401:15)
[20:06:45.923] at /vercel/path0/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/server/require-hook.js:55:36
[20:06:45.923] at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
[20:06:45.923] at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
[20:06:45.923] at Function._load (node:internal/modules/cjs/loader:1211:37)
[20:06:45.923] at TracingChannel.traceSync (node:diagnostics_channel:322:14)
[20:06:45.923] at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
[20:06:45.923] at Module.<anonymous> (node:internal/modules/cjs/loader:1487:12)
[20:06:45.923] at mod.require (/vercel/path0/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/server/require-hook.js:65:28)
[20:06:45.923] at require (node:internal/modules/helpers:135:16) {
[20:06:45.923] code: 'MODULE_NOT_FOUND',
[20:06:45.924] requireStack: [
[20:06:45.924] '/vercel/path0/node_modules/.pnpm/@prisma+client@5.16.1_prisma@5.16.1/node_modules/@prisma/client/default.js',
[20:06:45.924] '/vercel/path0/.next/server/app/api/auth/[...nextauth]/route.js',
[20:06:45.924] '/vercel/path0/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/server/require.js',
[20:06:45.924] '/vercel/path0/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/server/load-components.js',
[20:06:45.924] '/vercel/path0/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/utils.js',
[20:06:45.924] '/vercel/path0/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/worker.js',
[20:06:45.924] '/vercel/path0/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/compiled/jest-worker/processChild.js'
[20:06:45.924] ]
[20:06:45.924] }
[20:06:45.930]
[20:06:45.930] > Build error occurred
[20:06:45.931] Error: Failed to collect page data for /api/auth/[...nextauth]
[20:06:45.931] at /vercel/path0/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/utils.js:1268:15
[20:06:45.931] at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
[20:06:45.932] type: 'Error'
[20:06:45.932] }
[20:06:46.013] ELIFECYCLE Command failed with exit code 1.
[20:06:46.028] Error: Command "pnpm run build" exited with 1
[20:06:46.510]
[20:06:49.506] Exiting build container
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels