#User dropdown menu not working. Jetstream

26 messages · Page 1 of 1 (latest)

lapis basin
#

The problem I am facing is with the user dropdown menu. When I click on the username, nothing happens. I have followed all the steps mentioned in the installation guide at https://jetstream.laravel.com/installation.html, and I have even reinstalled it five times. I would greatly appreciate any assistance or guidance you can provide to help me resolve this issue. Thank You.

final pond
#

when you run the app locally do you have one terminal with php artisan serve and another with npm run dev

lapis basin
#

i used the npm run build command, i am not in the dev mode.

#

in production mode.

final pond
#

i should've asked are you using inertia vue or livewire?

lapis basin
#

livewire

final pond
#

Does it work locally?

#

also in your build script for the web do you have

npm install
npm run build

normally works fine out of the box with that..

#

also checked out your page - it's not the typical way to check these things but in the end it's clear there that livewire is not found so yeah something with the install is missing/not correct...

lapis basin
#

I have already done npm install, - And npm run build.

#
    "private": true,
    "type": "module",
    "scripts": {
        "dev": "vite",
        "build": "vite build"
    },
    "devDependencies": {
        "@tailwindcss/forms": "^0.5.2",
        "@tailwindcss/typography": "^0.5.0",
        "autoprefixer": "^10.4.7",
        "axios": "^1.1.2",
        "laravel-vite-plugin": "^0.8.0",
        "postcss": "^8.4.14",
        "tailwindcss": "^3.1.0",
        "vite": "^4.0.0"
    }
}
final pond
#

It's hard to say to much more without knowing more but in the end check your server/host logs and find out there is there's an error installing - it's there that it's missing from what i see...

lapis basin
#

2023/10/10 18:47:34 [error] 2935500#2935500: *72099 open() "/home/wavadev-data/htdocs/data.wavadev.xyz/public/livewire/livewire.js" failed (2: No such file or directory), client: 77.10.22.140, server: data.wavadev.xyz, request: "GET /livewire/livewire.js?id=5d3e67e0 HTTP/2.0", host: "data.wavadev.xyz", referrer: "https://data.wavadev.xyz/dashboard"

final pond
#

That's publicly available (i saw that on your site) - easiest is to start from scratch, IE does it work on your local machine?

#

i just created a project and it works fine... also a similar topic came up recently and was node version in the end - is it latest?

#

Both local and on the web server..

lapis basin
#

node version: 18.17.1

#

And NPM version: 9.6.7

#

Laravel v10.28.0 (PHP v8.2.11)

final pond
#

does it work locally?

lapis basin
#

@final pond fixed it, this worked for me:

#

i did not have any livewire folder in my public folder.

final pond
#

Strange...maybe something in the install stack not quite right or missed but either way glad you're up and running now - although if you've had to copy something from vendor there maybe more problems lying in wait