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

Can't resolve '../utils/logger' in 4.6.0 #4758

Closed
mhuttner opened this issue Jun 23, 2022 · 7 comments · Fixed by #4760
Closed

Can't resolve '../utils/logger' in 4.6.0 #4758

mhuttner opened this issue Jun 23, 2022 · 7 comments · Fixed by #4760
Labels
bug Something isn't working priority Priority fix or enhancement

Comments

@mhuttner
Copy link

Environment

System:
OS: macOS 12.4
CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
Memory: 1003.14 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.0.0 - /usr/local/bin/node
npm: 8.10.0 - /usr/local/bin/npm
Browsers:
Chrome: 102.0.5005.115
Firefox: 101.0.1
Safari: 15.5
npmPackages:
next: 12.1.6 => 12.1.6
next-auth: 4.6.0 => 4.6.0
react: 18.2.0 => 18.2.0

Reproduction URL

none

Describe the issue

The next compile failes with

error - ./node_modules/next-auth/react/index.js:37:0
Module not found: Can't resolve '../utils/logger'

after updating to 4.6.0, reverting to 4.5.0 fixes the issue

How to reproduce

  • Update next-auth to 4.6.0 from 4.5.0
  • The next build fails

Expected behavior

  • Build should not fail
@mhuttner mhuttner added the triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. label Jun 23, 2022
@linus-amg
Copy link

linus-amg commented Jun 23, 2022

Maybe ../utils needs to be added to the outputs here: https://github.com/nextauthjs/next-auth/blob/main/turbo.json ? like the before-used ../lib is. First guess is PR https://github.com/nextauthjs/next-auth/pull/4704/files introduced this bug.

@volodymyr-strilets-mindcurv
Copy link

getting the same error 🙃

@oxas
Copy link

oxas commented Jun 23, 2022

Screenshot 2022-06-23 175747

Having the same issue.

@TCatshoek
Copy link

TCatshoek commented Jun 23, 2022

Me too :(

wait  - compiling...
error - ./node_modules/next-auth/react/index.js:37:0
Module not found: Can't resolve '../utils/logger'

Can confirm it doesn't happen anymore after downgrading to 4.5.0

@jobinabraham
Copy link

Yes...same here...downgraded to 4.5.0...That worked for now. Switching to ~ for all packages now

@balazsorban44 balazsorban44 added bug Something isn't working priority Priority fix or enhancement and removed triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels Jun 23, 2022
@balazsorban44
Copy link
Member

I'm already on it, one of the issues were indeed a missing utils folder 489cad4

The other issue is that somehow simple type re-exports are being bundled as part of the module and imported on line 14 here: https://unpkg.com/browse/next-auth@0.0.0-pr.4760.fa6189ff/index.js

@balazsorban44
Copy link
Member

Should be fixed in 4.6.1! Please give it a try. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority Priority fix or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants