W
Waspβ€’10mo ago
Gwaggli

Missing "./auth/email" specifier in "wasp" package

I have a Page where I import { login} from wasp/auth/email which worked perfectly on Version 0.11.X but now renders [plugin:vite:import-analysis] Missing "./auth/email" specifier in "wasp" package error. What does this error mean? Where do i need to specify ./auth/email? If i remove this import, the app renders just fine. My Wasp file looks like this
app AppName {
wasp: {
version: "^0.12.0"
},
// ...
auth: {
userEntity: User,
methods: {
email: {
fromField: {
name: "Name",
},
emailVerification: {
clientRoute: EmailVerificationRoute,
},
passwordReset: {
clientRoute: PasswordResetRoute,
},
}
},
onAuthFailedRedirectTo: "/login"
},
// ...
}
app AppName {
wasp: {
version: "^0.12.0"
},
// ...
auth: {
userEntity: User,
methods: {
email: {
fromField: {
name: "Name",
},
emailVerification: {
clientRoute: EmailVerificationRoute,
},
passwordReset: {
clientRoute: PasswordResetRoute,
},
}
},
onAuthFailedRedirectTo: "/login"
},
// ...
}
Ps: does it maybe make sense to add a Tag Migration to these questions here?
3 Replies
miho
mihoβ€’10mo ago
Did you run the migration script or you migrated by hand? πŸ˜„ I think to import should be from wasp/client/auth πŸ™‚
Gwaggli
GwaggliOPβ€’10mo ago
I used the script but i seems it did not work for all my files. Also a lot of previous @shared/.. paths did not get converted. But your suggestion solved my issue, thank you πŸ˜„
martinsos
martinsosβ€’10mo ago
Oooooh I completely forgot to convert @shared paths! Argh, sorry about that!
Want results from more Discord servers?
Add your server