Feb 17, 2026
0
Level 2
Disabling fortify registeration in Laravel 12 Vue starter kit with Wayfinder gives build errors /resources/js/routes/verification
Using Laravel 12, Vue Starter kit, Laravel auth with Wayfinder will give build errors after removing fortify features, like registration.
config/fortify.php:147
'features' => [
// Features::registration(),
Features::resetPasswords(),
Features::emailVerification(),
Features::twoFactorAuthentication([
'confirm' => true,
'confirmPassword' => true,
// 'window' => 0
]),
],
pnpm build
error during build:
[vite:load-fallback] Could not load /resources/js/routes/verification (imported by resources/js/pages/settings/Profile.vue?vue&type=script&setup=true&lang.ts): ENOENT: no such file or directory, open '/resources/js/routes/verification'
Now, I know the fix is to remove the registeration imports that wayfinder from the Profile.vue file, but is there a better way? Or do I simply have to add it back when I re-enable those fortify features?
Please or to participate in this conversation.