Closed HuyPham55 closed 2 years ago
Duplicate of https://github.com/laravel/vite-plugin/issues/93
This issue will be fixed in the next release. Please see https://github.com/laravel/vite-plugin/issues/93#issuecomment-1189692624 for a interim solution.
Description:
After
npm run build
, runningnode bootstrap/ssr/ssr.mjs
causes the following error. More detail below:Related documents:
Steps To Reproduce:
Every command and description is described in 2 official URLs above
composer install
php artisan breeze:install vue --ssr
to scaffold authentication with SSRnpm install
npm run build
Attempt to fix:
I went to\node_modules\laravel-vite-plugin\inertia-helpers\index.js and change from
to
And run step 6-7 again, it works like a charm. There must be syntax problem, or am I missing a step in the process?
If it's a bug, please fix it soon.