eidellev / inertiajs-adonisjs

279 stars 17 forks source link

All Inertia requests must receive a valid Inertia response, however a plain JSON response was received. #70

Closed jakemake closed 2 years ago

jakemake commented 2 years ago

There is an error All Inertia requests must receive a valid Inertia response, however a plain JSON response was received. after updating adapter from version 4 to 6 AddonisJS : "@adonisjs/core": "^5.8.3", "@eidellev/inertia-adonisjs": "^6.2.0", "@inertiajs/inertia": "^0.11.0", "@inertiajs/inertia-vue": "^0.8.0",

VUE version 2

But if i create a new Adonis App and use adapter v6 all works image

eidellev commented 2 years ago

Hi @jakemake ! Sorry for the delayed response. I suspect that you are missing the inertia middleware in your config. Can you please confirm?

eidellev commented 2 years ago

Closing this for now. Feel free to reopen if this issue continues.

jakemake commented 2 years ago

yes, thank you, the problem was missing middleware