Closed BryanHunt closed 1 year ago
The import also appears to be incorrect for esm, omitting the .js
portion.
Yes, hacking the module and changing the import to:
import 'regenerator-runtime/runtime.js';
works around this problem. I can't find this source code anywhere in this repository; otherwise, I would submit a PR.
Found the code. It is in a different repo: https://github.com/grafana/pyroscope-nodejs/blob/main/src/index.ts. I will move this issue there.
We are attempting to add Pyroscope to one of our NodeJS framework modules. Pyroscope fails to load with the following error:
We are running NodeJS v16.19.1 with the following mocha configuration: