@aisuvro That is all I had :D That is why I am stuck. Regarding the livewire isntallation, it was basic one then I removed it and followed docs and still the same issue.
@devSSI
I need the complete screenshot of your code. The livewire class file, the livewire blade file, and the file where you have included the livewire snippet.
Check the complete response <!DOCTYPE..... Clearly, it is rendering a HTML instead of JSON. Try to decode what that webpage actually is, you should be able to proceed further then. For e.g. it can a login screen.
If you are still stuck, give us the route and complete HTML response that is throwing this error.
In my experience, modifications to middleware group web can cause some issue.