Replies: 2 comments
-
Use |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm running into the same issue, but only if i import the css multiple times (once for header, footer and body). using i'm using using
on MacOS 15.5 and using Herd for Laravel |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
I installed fresh Laravel 11, puppeteer and laravel-pdf to reproduce this bug. When I create a pdf with a view that contains
@vite(['resources/css/app.css'])
the app returns error:The command "C:\laragon\bin\nodejs\node-v22.13.0-win-x64\node.EXE "C:\Laravel Apps\test-pdfs\vendor\spatie\browsershot\src/../bin/browser.cjs" "{""url"":""file:\/\/C:\\Users\\xxxx\\AppData\\Local\\Temp\\1796011234-0715388001737573807\\index.html"",""action"":""pdf"",""options"":{""args"":[""--no-sandbox"",""--disable-web-security""],""viewport"":{""width"":800,""height"":600},""displayHeaderFooter"":false,""format"":""a4"",""waitUntil"":""networkidle0"",""acceptInsecureCerts"":true,""printBackground"":true}}"" failed. Exit Code: 1(General error) Working directory: C:\Laravel Apps\test-pdfs\public Output: ================ Error Output: ================ TimeoutError: Navigation timeout of 30000 ms exceeded at new Deferred (C:\Laravel Apps\test-pdfs\node_modules\puppeteer-core\lib\cjs\puppeteer\util\Deferred.js:60:34) at Deferred.create (C:\Laravel Apps\test-pdfs\node_modules\puppeteer-core\lib\cjs\puppeteer\util\Deferred.js:21:16) at new LifecycleWatcher (C:\Laravel Apps\test-pdfs\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\LifecycleWatcher.js:69:60) at CdpFrame.goto (C:\Laravel Apps\test-pdfs\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\Frame.js:148:29) at CdpFrame.<anonymous> (C:\Laravel Apps\test-pdfs\node_modules\puppeteer-core\lib\cjs\puppeteer\util\decorators.js:109:27) at CdpPage.goto (C:\Laravel Apps\test-pdfs\node_modules\puppeteer-core\lib\cjs\puppeteer\api\Page.js:574:43) at callChrome (C:\Laravel Apps\test-pdfs\vendor\spatie\browsershot\bin\browser.cjs:293:37)
.When I remove vite() asset, it works just fine. Also it works when I run
npm run dev
(even with the vite() asset) instead ofnpm run build
. It can be something with assets building?How to reproduce the bug
npm run build
andphp artisan serve
Package Version
1.5.4
PHP Version
8.2.27
Laravel Version
11.39.1
Which operating systems does with happen with?
Windows
Notes
.puppeteerrc.cjs
withand reinstalling puppeteer but it did not work.
Beta Was this translation helpful? Give feedback.
All reactions