Skip to content

route is not defined with ssr ( laravel template ) #2293

@Logarithmique51

Description

@Logarithmique51

Version:

  • @inertiajs/react version: 2.0.0

Describe the problem:

I just setup , the laravel-kit everythings fine but when i run php artisan inertia:start-ssr , and make a request I get this error .

sudo php artisan inertia:start-ssr Starting SSR server on port 13714... Inertia SSR server started. ReferenceError: route is not defined at file:///var/www/D-DOBEL/bootstrap/ssr/assets/app-layout-CFIfBlG4.js:128:11 at ModuleJob.run (node:internal/modules/esm/module_job:222:25) at async ModuleLoader.import (node:internal/modules/esm/loader:316:24) at async Promise.all (index 0) at async ae (file:///var/www/D-DOBEL/node_modules/@inertiajs/react/dist/index.esm.js:1:1584) at async Server.<anonymous> (file:///var/www/D-DOBEL/node_modules/@inertiajs/core/dist/server.esm.js:1:527)

I didn't change anything of the setup in the ssr and app so i don't realy knwo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    reactRelated to the react adapter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions