Arshad Ameen
Arshad Ameen

Reputation: 259

livewire.js and flux.js is not found in Laravel 12 register page

I freshly install Laravel 12 livewire starter kit. installation completed without any issue. When submit the user details in register page I found that the page is not correctly submitting the form .URL is appended with query strings instead of submitting. when I check the console it show errors. I can see the same issue in login page also.

GET http://localhost/flux/flux.js?id=e42ce913 net::ERR_ABORTED 404 (Not Found)
GET http://localhost/livewire/livewire.js?id=65f3e655 net::ERR_ABORTED 404 (Not Found)

How can I fix this issue?

Upvotes: 0

Views: 57

Answers (2)

Zaid Malek
Zaid Malek

Reputation: 443

To access it directly from virutal host. You can either run npm run dev or npm run build accordingly. You can find the difference for the both here.

Upvotes: 0

Arshad Ameen
Arshad Ameen

Reputation: 259

Issue resolved while I access the app through http://127.0.0.1:8000/register after run composer run dev. The issue was there when I access like http://localhost/myProjectFolder/public/register

Upvotes: 0

Related Questions