Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"SyntaxError: Cannot use import statement outside a module" after updating @next-auth/firebase-adapter to 1.0.2 #5589

Closed
harlandjp opened this issue Oct 17, 2022 · 1 comment
Labels
adapters Changes related to the core code concerning database adapters firebase @auth/firebase-adapter triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@harlandjp
Copy link

Adapter type

@next-auth/firebase-adapter

Environment

System:
OS: macOS 12.6
CPU: (10) arm64 Apple M1 Pro
Memory: 738.03 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.17.0/bin/yarn
npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
Browsers:
Chrome: 106.0.5249.119
Safari: 16.0

Reproduction URL

N/A

Describe the issue

After updating @next-auth/firebase-adapter to 1.0.2, calls to next-auth endpoints fail with the error error - SyntaxError: Cannot use import statement outside a module.

How to reproduce

Run NextJS and try to login using next-auth

Expected behavior

Adapter works as expected.

@harlandjp harlandjp added adapters Changes related to the core code concerning database adapters triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels Oct 17, 2022
@github-actions github-actions bot added the firebase @auth/firebase-adapter label Oct 17, 2022
@balazsorban44
Copy link
Member

Duplicate of #5551

@balazsorban44 balazsorban44 marked this as a duplicate of #5551 Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapters Changes related to the core code concerning database adapters firebase @auth/firebase-adapter triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

No branches or pull requests

2 participants