question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Environment

System: OS: macOS 12.4 CPU: (4) x64 Intel® Core™ 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

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:16
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
volodymyr-strilets-mindcurvcommented, Jun 23, 2022

getting the same error 🙃

3reactions
balazsorban44commented, Jun 23, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discussions - GitHub
Recently me and my teams is trying to deploy web application and it always do npm install and npm run build.. but suddenly...
Read more >
Module not found: Error: Can't resolve 'util' in webpack
The main problem is with Webpack 5. It doesn't preload the polyfill of Node.js. I see that this issue can help you.
Read more >
Bundling failed: Module not found - Forge
I'm building a Forge application uploading files to remote server with formdata-node, and I get below error while bundling.
Read more >
How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >
Module not found: Error: Can't resolve 'util' [Solved] | bobbyhadz
To solve the error, run the npm install util command and update your webpack.config.js file. module not found error cant resolve util. shell....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found