W
Wasp-langGwaggli

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",
email: "email@email.com",
},
emailVerification: {
clientRoute: EmailVerificationRoute,
},
passwordReset: {
clientRoute: PasswordResetRoute,
},
}
},
onAuthFailedRedirectTo: "/login"
},
// ...
}
app AppName {
wasp: {
version: "^0.12.0"
},
// ...
auth: {
userEntity: User,
methods: {
email: {
fromField: {
name: "Name",
email: "email@email.com",
},
emailVerification: {
clientRoute: EmailVerificationRoute,
},
passwordReset: {
clientRoute: PasswordResetRoute,
},
}
},
onAuthFailedRedirectTo: "/login"
},
// ...
}
Ps: does it maybe make sense to add a Tag Migration to these questions here?
M
miho44d ago
Did you run the migration script or you migrated by hand? 😄 I think to import should be from wasp/client/auth 🙂
G
Gwaggli44d 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 😄
M
martinsos44d ago
Oooooh I completely forgot to convert @shared paths! Argh, sorry about that!