Skip to content

[SSR] Vue warn: Invalid vnode type when creating vnode: undefined #231

Description

@hohanov

Hi everyone,

I am running into a tough Vue 3 rendering warning during SSR (Server-Side Rendering)
The installation was completed in accordance with the README

npm run build

> build
> vite build && vite build --ssr

vite v5.2.7 building for production...
✓ 487 modules transformed.
public/build/manifest.json              0.20 kB │ gzip:  0.15 kB
public/build/assets/app-DltdIwuU.css   17.68 kB │ gzip:  4.36 kB
public/build/assets/app-Gj1fQ_90.js   278.82 kB │ gzip: 94.97 kB
✓ built in 1.49s
vite v5.2.7 building SSR bundle for production...
✓ 27 modules transformed.
bootstrap/ssr/ssr-manifest.json    1.20 kB
bootstrap/ssr/ssr.js             112.88 kB
✓ built in 377ms

php artisan inertia:start-ssr
Starting SSR server on port 13714...
Inertia SSR server started.
[Vue warn]: Invalid vnode type when creating vnode: undefined.

What I've tried so far to get more debug info:

Ran Node with flags: node --trace-warnings --enable-source-maps bootstrap/ssr/ssr.js. However, there were no changes in the output.

Question:

Is there a reliable way to force the Vue SSR compiler to output line-specific error information?

Any guidance on how to extract more detailed logs from Vue during the SSR render phase would be greatly appreciated! Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions