-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
require.main.filename is undefined #3
Comments
I guess this is the case when the module is used from another module, and not directly from the main app. Good find. Maybe we can make the code more robust by checking if require.main is null and if so, use process.cwd (https://nodejs.org/api/process.html#process_process_cwd)? Or just use https://www.npmjs.com/package/require-main-filename? |
Closed, fixed with a new release https://github.com/blueconic/node-oom-heapdump/releases/tag/1.0.12. @hsiliev can you verify that this fixes your issue? Just use the latest version 1.0.12. |
I'm trying to dump heap or cpu profile and get:
Running on:
macOS 10.13.2
node 8.9.4
yarn 1.3.2
The text was updated successfully, but these errors were encountered: