inertia-laravel icon indicating copy to clipboard operation
inertia-laravel copied to clipboard

SSR dont work

Open aetbaev opened this issue 2 years ago • 1 comments

How I can render on client?

Version:

  • @inertiajs/vue3 version: ^1.0.0

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 />

aetbaev avatar Nov 08 '23 16:11 aetbaev

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

craigrileyuk avatar Mar 11 '24 00:03 craigrileyuk

Thanks @craigrileyuk.

driesvints avatar Jun 24 '24 13:06 driesvints