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.

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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AbdallahBedircommented, Dec 24, 2020

@mirzapourh If you work with next.js, check this example with sentry https://github.com/vercel/next.js/tree/canary/examples/with-sentry

0reactions
thompilercommented, Feb 3, 2021

Hi @AbdallahBedir! Here’s our doc on uploading source maps to Airbrake: https://airbrake.io/docs/features/private-sourcemaps/

Read more comments on GitHub >

github_iconTop 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 >

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