next-gdrive-index icon indicating copy to clipboard operation
next-gdrive-index copied to clipboard

How to use I get error when i try

Open ThreeMinutesFix opened this issue 1 year ago • 4 comments

photo_2024-06-17_19-15-38 what could be the issue, Any video guide? i am using it to make index and get direct links

image

ThreeMinutesFix avatar Jun 17 '24 13:06 ThreeMinutesFix

Can you copy the whole build log here?

mbahArip avatar Jun 18 '24 03:06 mbahArip

certianly [19:22:22.092] Running build in Washington, D.C., USA (East) – iad1 [19:22:22.417] Cloning github.com/ThreeMinutesFix/next-gdrive-index (Branch: main, Commit: fcdac1f) [19:22:23.032] Previous build cache not available [19:22:23.147] Cloning completed: 726.028ms [19:22:23.811] Running "vercel build" [19:22:24.811] Vercel CLI 34.2.7 [19:22:25.444] Installing dependencies... [19:22:25.833] yarn install v1.22.19 [19:22:25.981] [1/4] Resolving packages... [19:22:27.083] warning @cyntler/react-doc-viewer > react-pdf > pdfjs-dist > canvas > @mapbox/node-pre-gyp > [email protected]: This package is no longer supported. [19:22:27.101] warning @cyntler/react-doc-viewer > react-pdf > pdfjs-dist > canvas > @mapbox/node-pre-gyp > [email protected]: Rimraf versions prior to v4 are no longer supported [19:22:27.182] warning @cyntler/react-doc-viewer > react-pdf > pdfjs-dist > canvas > @mapbox/node-pre-gyp > npmlog > [email protected]: This package is no longer supported. [19:22:27.221] warning @cyntler/react-doc-viewer > react-pdf > pdfjs-dist > canvas > @mapbox/node-pre-gyp > npmlog > [email protected]: This package is no longer supported. [19:22:27.362] warning @cyntler/react-doc-viewer > react-pdf > pdfjs-dist > canvas > @mapbox/node-pre-gyp > rimraf > [email protected]: Glob versions prior to v9 are no longer supported [19:22:27.436] warning @cyntler/react-doc-viewer > react-pdf > pdfjs-dist > canvas > @mapbox/node-pre-gyp > rimraf > glob > [email protected]: 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. [19:22:43.604] warning eslint > @humanwhocodes/[email protected]: Use @eslint/config-array instead [19:22:43.672] warning eslint > file-entry-cache > flat-cache > [email protected]: Rimraf versions prior to v4 are no longer supported [19:22:43.743] warning eslint > @humanwhocodes/config-array > @humanwhocodes/[email protected]: Use @eslint/object-schema instead [19:22:47.439] [2/4] Fetching packages... [19:24:33.229] [3/4] Linking dependencies... [19:24:33.245] warning " > [email protected]" has unmet peer dependency "plyr@^3.7.7". [19:24:33.258] warning "react-hot-toast > [email protected]" has unmet peer dependency "csstype@^3.0.10". [19:24:33.258] warning " > [email protected]" has unmet peer dependency "@popperjs/core@^2.0.0". [19:24:33.262] warning "eslint-config-next > @typescript-eslint/[email protected]" has incorrect peer dependency "eslint@^8.56.0". [19:24:55.639] [4/4] Building fresh packages... [19:25:02.912] success Saved lockfile. [19:25:02.951] Done in 157.11s. [19:25:03.099] Detected Next.js version: 14.2.4 [19:25:03.102] Running "yarn run build" [19:25:03.563] yarn run v1.22.19 [19:25:03.660] $ next build [19:25:06.985] Attention: Next.js now collects completely anonymous telemetry regarding usage. [19:25:06.986] This information is used to shape Next.js' roadmap and prioritize features. [19:25:06.986] 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: [19:25:06.986] https://nextjs.org/telemetry [19:25:06.986] [19:25:07.157] ▲ Next.js 14.2.4 [19:25:07.166] [19:25:07.332] Creating an optimized production build ... [19:27:28.788] ✓ Compiled successfully [19:27:28.793] Linting and checking validity of types ... [19:28:23.367] Collecting page data ... [19:28:25.809] TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined [19:28:25.809] at Function.from (node:buffer:319:9) [19:28:25.809] at 2942 (/vercel/path0/.next/server/chunks/833.js:1:22023) [19:28:25.809] at t (/vercel/path0/.next/server/webpack-runtime.js:1:128) [19:28:25.809] at 11833 (/vercel/path0/.next/server/chunks/833.js:1:532) [19:28:25.809] at t (/vercel/path0/.next/server/webpack-runtime.js:1:128) [19:28:25.809] at 92145 (/vercel/path0/.next/server/app/api/raw/[...rest]/route.js:1:1611) [19:28:25.809] at t (/vercel/path0/.next/server/webpack-runtime.js:1:128) [19:28:25.809] at t (/vercel/path0/.next/server/app/api/raw/[...rest]/route.js:1:3240) [19:28:25.809] at /vercel/path0/.next/server/app/api/raw/[...rest]/route.js:1:3287 [19:28:25.809] at t.X (/vercel/path0/.next/server/webpack-runtime.js:1:1206) { [19:28:25.809] code: 'ERR_INVALID_ARG_TYPE' [19:28:25.809] } [19:28:25.809] [19:28:25.809] > Build error occurred [19:28:25.809] Error: Failed to collect page data for /api/raw/[...rest] [19:28:25.809] at /vercel/path0/node_modules/next/dist/build/utils.js:1268:15 [19:28:25.809] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { [19:28:25.809] type: 'Error' [19:28:25.809] } [19:28:26.113] error Command failed with exit code 1. [19:28:26.114] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. [19:28:26.190] Error: Command "yarn run build" exited with 1 [19:28:27.334]

ThreeMinutesFix avatar Jun 19 '24 02:06 ThreeMinutesFix

I just checked your fork. Make sure you're using your own config file with encrypted root / shared drive id, also make sure you set the env inside project settings in vercel.

mbahArip avatar Jun 20 '24 13:06 mbahArip

yes i setted the key but still its shows same error even though key setting. about root or share id i have to check

ThreeMinutesFix avatar Jun 20 '24 13:06 ThreeMinutesFix

Encryption method are updated in the latest version You can try to update the repository, and read the migration guide

Video guide will be uploaded ASAP

mbahArip avatar Jan 25 '25 22:01 mbahArip

Thanks sir

ThreeMinutesFix avatar Jan 28 '25 04:01 ThreeMinutesFix