Open TDodgeCo opened 1 year ago
Of course after posting this I ended up realizing the official inertiaJS docs do discuss how to resolve components, it just requires some scrolling. Still, it's a simple fix and it's always nice to have a full quick start guide on a packages repo.
Thanks again.
Hi @TDodgeCo ! Thanks for taking the time to report this. I will update the docs
There's no documentation on this repo for hooking up Vue3 without SSR. I followed the official documentation, which directed me to include this bit of code in my main javascript file (app.js in this case)
import.meta isn't a supported feature in the bundling processes included in AdonisJS. My templates wouldn't render until I changed
to:
resolve: (name) => require(
./Pages/${name})
I found this extension through adocasts, and it was a little frustrating following their tutorial point for point and being unable to produce a working result. Naturally, I came to these docs first to see if there was any new steps in the process since his video is a year old. The import.meta issue appears to crop up fairly often, so it would likely save some folks a good deal of frustration mentioning how the AdonisJS inertia module expects things to be done.
Thanks!