vercel deployment of playwright site not working
Unanswered
Philippine Crocodile posted this in #help-forum
Philippine CrocodileOP
hi,
when i deploy my site to vercel, i keep getting this error when using playwright library, not testing (https://playwright.dev/docs/library#introduction)
package.json:
saw many comments that packages added to devdependencies won't be installed but this solution still isnt' working. i tested
when i deploy my site to vercel, i keep getting this error when using playwright library, not testing (https://playwright.dev/docs/library#introduction)
sh: line 1: playwright: command not found
npm error code 127
npm error path /vercel/path0
npm error command failed
npm error command sh -c PLAYWRIGHT_BROWSERS_PATH=0 npx playwright install
package.json:
"scripts": {
"dev": "next dev --turbopack",
"build": "next build && npx playwright install",
"start": "next start",
"lint": "next lint",
"postinstall": "PLAYWRIGHT_BROWSERS_PATH=0 npx playwright install"
},
"dependencies": {
"playwright": "^1.50.1",
...
saw many comments that packages added to devdependencies won't be installed but this solution still isnt' working. i tested
./node_modules/.bin/playwright install
and it said sh: line 1: ./node_modules/.bin/playwright: No such file or directory
. not sure what to do since i can use playwright with localhost. any help would be amazing!1 Reply
Philippine CrocodileOP
hey, any help with this?