nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
3.91k stars 485 forks source link

error TS5083: Cannot read file '/vercel/path0/.nuxt/tsconfig.json'. #937

Closed Reddybrekkers closed 10 months ago

Reddybrekkers commented 11 months ago

Description

When attempting to build this in Vercel, I get the following error - can anyone assist? I've seen threads elsewhere with no obvious answer.

[16:31:22.068] Running build in Washington, D.C., USA (East) – iad1 (Hive) [16:31:22.916] Cloning bitbucket.org/ahk-it/nuxt-ui (Branch: dev, Commit: 74275f7) [16:31:23.248] Previous build cache not available [16:31:23.624] Cloning completed: 708.048ms [16:31:23.979] Running "vercel build" [16:31:24.481] Vercel CLI 32.5.3 [16:31:25.631] Warning: Detected "engines": { "node": ">=v16.20.2" } in your package.json that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version [16:31:25.664] Detected pnpm-lock.yaml version 6 generated by pnpm 8 [16:31:25.691] Installing dependencies... [16:31:26.388] Scope: all 2 workspace projects [16:31:26.489] Lockfile is up to date, resolution step is skipped [16:31:26.655] Progress: resolved 1, reused 0, downloaded 0, added 0 [16:31:26.985] Packages: +1557 [16:31:26.985] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [16:31:27.656] Progress: resolved 1557, reused 0, downloaded 66, added 61 [16:31:28.658] Progress: resolved 1557, reused 0, downloaded 327, added 319 [16:31:29.658] Progress: resolved 1557, reused 0, downloaded 555, added 542 [16:31:30.659] Progress: resolved 1557, reused 0, downloaded 840, added 835 [16:31:31.660] Progress: resolved 1557, reused 0, downloaded 959, added 964 [16:31:32.660] Progress: resolved 1557, reused 0, downloaded 1138, added 1134 [16:31:33.661] Progress: resolved 1557, reused 0, downloaded 1199, added 1194 [16:31:34.661] Progress: resolved 1557, reused 0, downloaded 1349, added 1342 [16:31:35.521] Progress: resolved 1557, reused 0, downloaded 1552, added 1557, done [16:31:36.155] .../node_modules/vue-demi postinstall$ node ./scripts/postinstall.js [16:31:36.280] .../node_modules/vue-demi postinstall: Done [16:31:36.300] .../esbuild@0.19.4/node_modules/esbuild postinstall$ node install.js [16:31:36.301] .../esbuild@0.19.5/node_modules/esbuild postinstall$ node install.js [16:31:36.301] .../esbuild@0.18.20/node_modules/esbuild postinstall$ node install.js [16:31:36.414] .../esbuild@0.19.4/node_modules/esbuild postinstall: Done [16:31:36.441] .../esbuild@0.19.5/node_modules/esbuild postinstall: Done [16:31:36.455] .../esbuild@0.18.20/node_modules/esbuild postinstall: Done [16:31:37.172] [16:31:37.172] dependencies: [16:31:37.172] + @egoist/tailwindcss-icons 1.4.0 [16:31:37.172] + @headlessui/tailwindcss 0.2.0 [16:31:37.172] + @headlessui/vue 1.7.16 [16:31:37.172] + @iconify-json/heroicons 1.1.13 [16:31:37.172] + @nuxt/kit 3.8.0 [16:31:37.172] + @nuxtjs/color-mode 3.3.0 [16:31:37.172] + @nuxtjs/tailwindcss 6.8.1 [16:31:37.172] + @popperjs/core 2.11.8 [16:31:37.173] + @tailwindcss/aspect-ratio 0.4.2 [16:31:37.173] + @tailwindcss/container-queries 0.1.1 [16:31:37.173] + @tailwindcss/forms 0.5.6 [16:31:37.173] + @tailwindcss/typography 0.5.10 [16:31:37.173] + @vueuse/core 10.5.0 [16:31:37.173] + @vueuse/integrations 10.5.0 [16:31:37.173] + @vueuse/math 10.5.0 [16:31:37.173] + defu 6.1.3 [16:31:37.173] + fuse.js 6.6.2 [16:31:37.173] + nuxt-icon 0.6.3 [16:31:37.173] + ohash 1.1.3 [16:31:37.173] + pathe 1.1.1 [16:31:37.173] + scule 1.0.0 [16:31:37.173] + tailwind-merge 1.14.0 [16:31:37.173] + tailwindcss 3.3.5 [16:31:37.173] [16:31:37.173] devDependencies: [16:31:37.174] + @nuxt/eslint-config 0.2.0 [16:31:37.174] + @nuxt/module-builder 0.5.2 [16:31:37.174] + @release-it/conventional-changelog 7.0.2 [16:31:37.174] + eslint 8.52.0 [16:31:37.174] + joi 17.11.0 [16:31:37.174] + nuxt 3.8.0 [16:31:37.174] + release-it 16.2.1 [16:31:37.174] + typescript 5.2.2 [16:31:37.174] + unbuild 2.0.0 [16:31:37.174] + valibot 0.19.0 [16:31:37.174] + vitest 0.34.6 [16:31:37.174] + vue-tsc 1.8.21 [16:31:37.174] + yup 1.3.2 [16:31:37.174] + zod 3.22.4 [16:31:37.174] [16:31:37.532] Done in 11.7s [16:31:37.603] Running "pnpm run build" [16:31:38.210] [16:31:38.211] > @nuxt/ui@2.10.0 build /vercel/path0 [16:31:38.211] > nuxt-module-build build [16:31:38.211] [16:31:38.967] [info] Building ui [16:31:38.968] [info] Cleaning dist directory: ./dist [16:31:44.380] error TS5083: Cannot read file '/vercel/path0/.nuxt/tsconfig.json'. [16:31:44.380] [16:31:45.303] src/module.ts(1,109): error TS2792: Cannot find module '@nuxt/kit'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? [16:31:45.303] src/module.ts(2,27): error TS2792: Cannot find module 'tailwindcss/colors.js'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? [16:31:45.303] src/module.ts(3,60): error TS2792: Cannot find module 'tailwindcss/lib/lib/defaultExtractor.js'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? [16:31:45.303] src/module.ts(4,71): error TS2792: Cannot find module '@egoist/tailwindcss-icons'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? [16:31:45.303] src/module.ts(5,31): error TS2792: Cannot find module '../package.json'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? [16:31:45.303] src/module.ts(27,16): error TS2664: Invalid module name in augmentation, module 'nuxt/schema' cannot be found. [16:31:45.303] src/module.ts(32,16): error TS2664: Invalid module name in augmentation, module '@nuxt/schema' cannot be found. [16:31:45.303] src/module.ts(69,40): error TS1343: The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'. [16:31:45.303] [16:31:45.306] [error] Failed to compile. Check the logs above. [16:31:45.306] at error (node_modules/.pnpm/rollup@3.29.1/node_modules/rollup/dist/es/shared/node-entry.js:2287:30) [16:31:45.306] at Object.error (node_modules/.pnpm/rollup@3.29.1/node_modules/rollup/dist/es/shared/node-entry.js:25346:20) [16:31:45.306] at Object.error (node_modules/.pnpm/rollup@3.29.1/node_modules/rollup/dist/es/shared/node-entry.js:24467:42) [16:31:45.306] at generateDtsFromTs (node_modules/.pnpm/rollup-plugin-dts@6.0.0_rollup@3.29.1_typescript@5.2.2/node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.mjs:1825:30) [16:31:45.306] at Object.transform (node_modules/.pnpm/rollup-plugin-dts@6.0.0_rollup@3.29.1_typescript@5.2.2/node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.mjs:1834:38) [16:31:45.306] at node_modules/.pnpm/rollup@3.29.1/node_modules/rollup/dist/es/shared/node-entry.js:25539:40 [16:31:45.306] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [16:31:45.306] [16:31:45.306] [error] Failed to compile. Check the logs above. [16:31:45.325]  ELIFECYCLE  Command failed with exit code 1. [16:31:45.345] Error: Command "pnpm run build" exited with 1 [16:31:46.003]

benjamincanac commented 11 months ago

You mean you're trying to deploy the docs directory to Vercel?

benjamincanac commented 11 months ago

Why would you do that? 😅 You can't directly deploy the docs as its part of a workspace and needs the root module. Also, you won't be able to build it without a Nuxt UI Pro license.