Error importing next-auth@5.0.0-beta.3: "The current file is a CommonJS module"
Unanswered
Alaskan Husky posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
Alaskan HuskyOP
Trying to follow the guide to implement it. How should I be importing next-auth?
https://nextjs.org/learn/dashboard-app/adding-authentication
https://nextjs.org/learn/dashboard-app/adding-authentication
![Image](https://cdn.discordapp.com/attachments/1170789966457098380/1170789966775861309/Cursor_and_auth_config_ts__platform.png?ex=655a5220&is=6547dd20&hm=9ca4b0716de0252b5b2e5750aa8dd24b56d567f71e5dcdbafdc74838271401aa&)
2 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
Alaskan HuskyOP
@Alfonsus Ardani kind ping just to know if you happen to have an idea on how to deal with this.
I'm currently using
Thanks a lot!
I'm currently using
// @ts-expect-error
to ignore it, and this works fine, but I would love not to need it, if possible 🙂Thanks a lot!
![Avatar](https://cdn.discordapp.com/embed/avatars/1.png)
Alaskan HuskyOP
my apologies