W
Wasp-lang•3w ago
ArDev

Migration Issues 0.14

I migrated to 0.14 and currently getting the issue - [ Wasp ] ext-src/client/admin/components/Header.tsx(1,15): error TS2305: Module '"wasp/auth/types"' has no exported member 'AuthUser'.
6 Replies
kapa.ai
kapa.ai•3w ago
Hi @ArDev. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- It seems like you're encountering an issue with the AuthUser type from the wasp/auth/types module. This could be due to changes in the Wasp authentication system in recent versions. From the knowledge sources, it appears that the AuthUser type should be imported from wasp/auth instead of wasp/auth/types. For example, in your Header.tsx file, you should have something like this:
import { AuthUser } from 'wasp/auth'
import { AuthUser } from 'wasp/auth'
Also, it's worth noting that the latest version of Wasp mentioned in the knowledge sources is 0.13.X. If you've migrated to 0.14, there might be additional changes not covered in the provided sources. You should check the migration guide from 0.12.X to 0.13.X (https://wasp-lang.dev/docs/migrate-from-0-12-to-0-13) and any subsequent migration guides for later versions. If the issue persists, it might be a good idea to check the Wasp GitHub issues (https://github.com/wasp-lang/wasp/issues) for similar problems or to open a new issue describing your problem. Sources: - Accessing the logged-in user (https://wasp-lang.dev/docs/auth/overview#on-the-client) - Migration from 0.11.X to 0.12.X (https://wasp-lang.dev/docs/migrate-from-0-11-to-0-12) - Github Issue: Improve error messages reported by the framework code (https://github.com/wasp-lang/wasp/issues/1664) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @ArDev, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
jordi0lle
jordi0lle•3w ago
@ArDev I just had the same problem and it's exactly what @kapa.ai said 😄
kapa.ai
kapa.ai•3w ago
Let me check the knowledge base for you. One moment! :books: ---------------------- I'm glad to hear that the information provided was helpful in resolving your issue! If you encounter any more problems or have further questions about Wasp, don't hesitate to ask. Happy coding! ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @jordi0lle, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
ArDev
ArDev•3w ago
remove the db part in main.wasp, that seemed to fix it for me
jordi0lle
jordi0lle•3w ago
@ArDev I think you can mark this question as solved 😉
ArDev
ArDev•3w ago
done!
Want results from more Discord servers?
Add your server