You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: ENOENT: no such file or directory, open
'/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/youtubei.js/dist/package.json'
Full error:
The app is live any help will be appreciated
Failure Logs
Error: ENOENT: no such file or directory, open '/vercel/path0/node_modules/youtubei.js/dist/package.json'
at Object.openSync (node:fs:601:3)
at readFileSync (node:fs:469:35)
at 65480 (/var/task/.next/server/chunks/480.js:50553:62)
at __webpack_require__ (/var/task/.next/server/webpack-runtime.js:25:43)
at 47909 (/var/task/.next/server/app/api/youtube/get-playlist/route.js:209:12)
at __webpack_require__ (/var/task/.next/server/webpack-runtime.js:25:43)
at __webpack_exec__ (/var/task/.next/server/app/api/youtube/get-playlist/route.js:276:39)
at /var/task/.next/server/app/api/youtube/get-playlist/route.js:277:78
at __webpack_require__.X (/var/task/.next/server/webpack-runtime.js:138:21)
at /var/task/.next/server/app/api/youtube/get-playlist/route.js:277:47 {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/vercel/path0/node_modules/youtubei.js/dist/package.json',
page: '/api/youtube/get-playlist'
}
Error: ENOENT: no such file or directory, open '/vercel/path0/node_modules/youtubei.js/dist/package.json'
at Object.openSync (node:fs:601:3)
at readFileSync (node:fs:469:35)
at 65480 (/var/task/.next/server/chunks/480.js:50553:62)
at __webpack_require__ (/var/task/.next/server/webpack-runtime.js:25:43)
at 47909 (/var/task/.next/server/app/api/youtube/get-playlist/route.js:209:12)
at __webpack_require__ (/var/task/.next/server/webpack-runtime.js:25:43)
at __webpack_exec__ (/var/task/.next/server/app/api/youtube/get-playlist/route.js:276:39)
at /var/task/.next/server/app/api/youtube/get-playlist/route.js:277:78
at __webpack_require__.X (/var/task/.next/server/webpack-runtime.js:138:21)
at /var/task/.next/server/app/api/youtube/get-playlist/route.js:277:47 {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/vercel/path0/node_modules/youtubei.js/dist/package.json',
page: '/api/youtube/get-playlist'
}
RequestId: 65ff7569-793f-42b8-9f33-1fe5e1fd33c9 Error: Runtime exited with error: exit status 1
Runtime.ExitError
Expected behavior
Expect the API to return the playlist with a POST request
Current behavior
Error 405 on the browser and 500 on Vercel because of this error:
Error: ENOENT: no such file or directory, open
'/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/youtubei.js/dist/package.json'
Version
Default
Anything else?
No response
Checklist
I am running the latest version.
I checked the documentation and found no answer.
I have searched the existing issues and made sure this is not a duplicate.
I have provided sufficient information.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Hello, I'm using youtubei.js 6.0.0 on Nextjs project https://github.com/AdelDima/youtube-to-notion
Locally it works just fine but in Vercel deploy ( with yarn and npnm ) I get this error:
Full error:
The app is live any help will be appreciated
Failure Logs
Expected behavior
Expect the API to return the playlist with a POST request
Current behavior
Error 405 on the browser and 500 on Vercel because of this error:
Version
Default
Anything else?
No response
Checklist
The text was updated successfully, but these errors were encountered: