Integration with next.js gives Module not found: Can't resolve 'async_hooks'
See original GitHub issue🐞 bug report
Affected Package
The issue is caused by package @airbrake/node
Is this a regression?
No
Description
When I use @airbrake/node with next.js, I always got
error - ./node_modules/@airbrake/node/esm/scope.js:2:0 Module not found: Can't resolve 'async_hooks'
I hope you create an example of integration with next.js
🔥 Exception or Error
error - ./node_modules/@airbrake/node/esm/scope.js:2:0
Module not found: Can't resolve 'async_hooks'
## 🌍 Your Environment
**@airbrake/\* version:**
@airbrake/node v1.4.1
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Elasticsearch JS & Next JS: Module not found: Can't resolve ...
The solution to the problem is to create a separate server that uses the library and which serves results to the Next JS...
Read more >Nodejs APM - Can't resolve 'async_hooks' - Elastic Discuss
We are trying to use APM for our React nodejs app. We have added the dependency in our package.json to install the elastic-apm-node...
Read more >module-not-found - Next.js
A module not found error can occur for many different reasons: The module you're trying to import is not installed in your dependencies;...
Read more >NextJS and KeystoneJS website cant resolve 'async_hooks'
I am currently making a NextJS website with KeystoneJS as the CMS. I cant find ... Axios => Module not found: Can't resolve...
Read more >Module not found: Can't resolve 'async_hooks' error [Solved]
The error "Module not found: Error: Can't resolve 'async_hooks'" occurs because there has been a breaking change in Webpack version 5. To solve...
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 FreeTop 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
Top GitHub Comments
@mirzapourh If you work with next.js, check this example with sentry https://github.com/vercel/next.js/tree/canary/examples/with-sentry
Hi @AbdallahBedir! Here’s our doc on uploading source maps to Airbrake: https://airbrake.io/docs/features/private-sourcemaps/