inertiajs / inertia-laravel

The Laravel adapter for Inertia.js.
https://inertiajs.com
MIT License
2.01k stars 224 forks source link

SSR dont work #554

Closed aetbaev closed 1 month ago

aetbaev commented 9 months ago

How I can render on client?

Version:

Describe the problem:

import require$$0 from "vue";
       ^^^^^^^^^^
SyntaxError: The requested module 'vue' does not provide an export named 'default'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:122:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:188:5)
file:///public_html/bootstrap/ssr/assets/VueStarRating.common-57a657b1.mjs:1
import require$$0 from "vue";
       ^^^^^^^^^^
SyntaxError: The requested module 'vue' does not provide an export named 'default'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:122:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:188:5)
client_loop: send disconnect: Broken pipe

Steps to reproduce:

npm install vue-star-rating@next

import StarRating from 'vue-star-rating'

<star-rating />
craigrileyuk commented 5 months ago

Please don't crosspost to multiple repositories, especially when your issue has nothing to do with either of them.

driesvints commented 1 month ago

Thanks @craigrileyuk.