Can't resolve '../utils/logger' in 4.6.0
See original GitHub issueEnvironment
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:
- Created a year ago
- Reactions:16
- Comments:7 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
getting the same error 🙃
Should be fixed in
4.6.1
! Please give it a try. 👍