Error importing next-auth@5.0.0-beta.3: "The current file is a CommonJS module"
Unanswered
Alaskan Husky posted this in #help-forum
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
2 Replies
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!
Alaskan HuskyOP
my apologies