-
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
Cannot find module 'perf_hooks' from nanotiming #19
Comments
I upgraded to the latest node version 8.9.4 and the error changed to something like if i create a file named 'perf_hooks' at the path listed in the error it works as expected :/ |
Looks like wrapping the |
Tested this on node 6, 8 and 9 today, and it seems the try...catch should be enough. Is this perhaps related to a bundler you're running on your end perhaps? |
browserify/browserify#1815 should fix I think? |
I got this fixed by upgrade node version to 8.11.2: nvm install v8.11.2 |
I am running a standalone browserify build that is not completing because of this error.
Error: Cannot find module 'perf_hooks' from '.../node_modules/nanotiming'
https://github.com/choojs/nanotiming/blob/master/index.js#L6
The text was updated successfully, but these errors were encountered: