Next.js Discord

Discord Forum

Error importing next-auth@5.0.0-beta.3: "The current file is a CommonJS module"

Unanswered
Alaskan Husky posted this in #help-forum
Open in Discord
Avatar
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
Image

2 Replies

Avatar
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 // @ts-expect-error to ignore it, and this works fine, but I would love not to need it, if possible 🙂

Thanks a lot!
Avatar
Alaskan HuskyOP
my apologies