Nuxt Error deploy in vercel #7573
Replies: 1 comment
-
This discussion was automatically closed because the community moved to vercel.community |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Acknowledgement
Question
why do i keep get that error when i deploy nuxt app in vercel? it says Error while requiring module
@nuxtjs/tailwindcss
: Error: Cannot find module '@nuxtjs/tailwindcss'. Even thought, it can run normally in local server[05:09:21.436] Running build in Washington, D.C., USA (East) – iad1
[05:09:21.575] Cloning github.com/indologian/template_undangan_pernikahan_1 (Branch: master, Commit: b5af7c3)
[05:09:21.588] Skipping build cache, deployment was triggered without cache.
[05:09:22.477] Cloning completed: 901.448ms
[05:09:22.837] Running "vercel build"
[05:09:23.249] Vercel CLI 37.5.4
[05:09:23.963] Installing dependencies...
[05:09:28.074] npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
[05:09:28.870] npm warn deprecated npmlog@5.0.1: This package is no longer supported.
[05:09:29.254] npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
[05:09:29.587] npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
[05:09:29.862] npm warn deprecated gauge@3.0.2: This package is no longer supported.
[05:09:30.084] npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported.
[05:09:31.375] npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
[05:09:31.605] npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
[05:09:31.641] npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
[05:09:34.461]
[05:09:34.462] > postinstall
[05:09:34.462] > nuxt prepare
[05:09:34.462]
[05:09:36.088] [info] [nuxt:tailwindcss] Using default Tailwind CSS file
[05:09:36.397] [info] Nuxt Icon server bundle mode is set to
local
[05:09:37.715] [success] Types generated in .nuxt
[05:09:37.744]
[05:09:37.745] added 757 packages in 14s
[05:09:37.745]
[05:09:37.745] 142 packages are looking for funding
[05:09:37.745] run
npm fund
for details[05:09:37.776] Running "npm run build"
[05:09:37.912]
[05:09:37.913] > build
[05:09:37.913] > nuxt build
[05:09:37.913]
[05:09:38.151] [log] Nuxt 3.13.2 with Nitro 2.9.7
[05:09:48.313] [log] ✔ Prisma CLI is already installed.
[05:09:48.314] [log] ✔ Prisma schema file exists.
[05:09:48.314] [log] ✔ Database migrations folder exists.
[05:09:48.315] [log]
[05:09:48.315] Not migrating the database.
[05:09:48.315] [log] Generating Prisma client...
[05:09:48.315]
[05:09:58.591] [error] ✘ Failed to generate Prisma Client.
[05:09:58.591]
[05:09:58.596] [warn] Slow module
@prisma/nuxt
took19365.71ms
to setup.[05:09:58.597] [log] Skipped installing Prisma Studio.
[05:09:58.718] [error] Error while requiring module
@nuxtjs/tailwindcss
: Error: Cannot find module '@nuxtjs/tailwindcss'[05:09:58.718] Require stack:
[05:09:58.718] - /vercel/path0/index.js
[05:09:58.720] [error] Cannot find module '@nuxtjs/tailwindcss'
[05:09:58.720] Require stack:
[05:09:58.720] - /vercel/path0/index.js
[05:09:58.720] Require stack:
[05:09:58.720] - index.js
[05:09:58.720] at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
[05:09:58.720] at Function.resolve (node:internal/modules/helpers:190:19)
[05:09:58.720] at Function._resolve [as resolve] (node_modules/jiti/dist/jiti.js:1:241814)
[05:09:58.720] at resolveModule (node_modules/@nuxt/kit/dist/index.mjs:2234:29)
[05:09:58.721] at requireModule (node_modules/@nuxt/kit/dist/index.mjs:2239:24)
[05:09:58.721] at loadNuxtModuleInstance (node_modules/@nuxt/kit/dist/index.mjs:2518:92)
[05:09:58.721] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[05:09:58.721] at async installModule (node_modules/@nuxt/kit/dist/index.mjs:2470:47)
[05:09:58.721] at async initNuxt (node_modules/nuxt/dist/index.mjs:4506:5)
[05:09:58.721] at async loadNuxt (node_modules/nuxt/dist/index.mjs:4673:5)
[05:09:58.721]
[05:09:58.721] [error] Cannot find module '@nuxtjs/tailwindcss'
[05:09:58.721] Require stack:
[05:09:58.721] - /vercel/path0/index.js
[05:09:58.738] Error: Command "npm run build" exited with 1
[05:09:58.947]
Beta Was this translation helpful? Give feedback.
All reactions