-
Hi @posva, I've so far been unsuccessful in trying to get a basic loader working. See the I've roughly followed the example here but I'm getting the following error:
It's like the loader isn't getting properly registered or it's just not getting looked up/found properly. Any idea what might be the issue? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Aaand 2 minutes later I finally find the solution to my own problem 🤦🏻. For anyone else here, I didn't register the DataLoader plugin, ie: // main.ts
import { DataLoaderPlugin } from 'unplugin-vue-router/data-loaders';
app.use(DataLoaderPlugin, { router }); I'd skipped over this setup part of the RFC. |
Beta Was this translation helpful? Give feedback.
Aaand 2 minutes later I finally find the solution to my own problem 🤦🏻. For anyone else here, I didn't register the DataLoader plugin, ie:
I'd skipped over this setup part of the RFC.