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
After npm run build, running node bootstrap/ssr/ssr.mjs causes the following error. More detail below:
file:///<path_to_project_root>/bootstrap/ssr/ssr.mjs:6
import { resolvePageComponent } from "laravel-vite-plugin/inertia-helpers/index.js";
^^^^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'resolvePageComponent' not found. The requested module 'laravel-vite-plugin/inertia-helpers/index.js' is a CommonJS module, which may not
support all module.exports as named exports.
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 <project_root>\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.
The text was updated successfully, but these errors were encountered: