Replies: 2 comments 7 replies
-
|
Beta Was this translation helpful? Give feedback.
-
I have the same problem in a project: Laravel 10.46.0v try reinstall all dependencies but, still not working :/ web.phpRoute::get('/test-pdf', [TestPdfController::class,'printPdf']); Controllernamespace App\Http\Controllers; use Illuminate\Http\Request; class TestPdfController extends Controller
} ErrorThe command "C:\Users\pc\AppData\Roaming\nvm\v18.16.0\node "C:\Users\pc\www...\vendor\spatie\browsershot\src/../bin/browser.cjs" "{""url"":""https://google.com"",""action"":""pdf"",""options"":{""path"":""C:\Users\pc\www\...\public\/pdf_temp/urlToPdf.pdf"",""args"":[""--no-sandbox""],""viewport"":{""width"":800,""height"":600},""newHeadless"":true,""format"":""A4"",""printBackground"":true}}"" failed. Exit Code: 1(General error) Working directory: C:\Users\pc\www...\public Output: ================ Error Output: ================ [Error: ENOENT: no such file or directory, mkdtemp 'undefined\temp\puppeteer_dev_chrome_profile-XXXXXX'] { errno: -4058, code: 'ENOENT', syscall: 'mkdtemp', path: 'undefined\temp\puppeteer_dev_chrome_profile-XXXXXX' } I need to use browsershot since I must use tailwind for the all pdf some help please! |
Beta Was this translation helpful? Give feedback.
-
Output:
Error Output:
[Error: ENOENT: no such file or directory, mkdtemp 'undefined\temp\puppeteer_dev_chrome_profile-XXXXXX'] {
errno: -4058,
code: 'ENOENT',
syscall: 'mkdtemp',
path: 'undefined\temp\puppeteer_dev_chrome_profile-XXXXXX'
}
in file C:\vitalikpozniak\laragon\www\downkount-api\vendor\spatie\browsershot\src\Browsershot.php on line 955
Beta Was this translation helpful? Give feedback.
All reactions