Skip to content
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

TypeError: Cannot read property '1' of null when running with REPL #28

Closed
seabaylea opened this issue Sep 3, 2015 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@seabaylea
Copy link
Member

When running the following in REPL with the 1.0.2 development line:

> node
> var appmetrics = require('appmetrics');

The following TypeError is seen:

TypeError: Cannot read property '1' of null
    at getRootModuleDir (C:\Users\tunniclm\workspaces\jtctools\runtime.tools\build\Release\deploy\internal\node_modules\appmetrics\probes\trace-probe.js:187:30)
    at Object.<anonymous> (C:\Users\tunniclm\workspaces\jtctools\runtime.tools\build\Release\deploy\internal\node_modules\appmetrics\probes\trace-probe.js:198:21)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at C:\Users\tunniclm\workspaces\jtctools\runtime.tools\build\Release\deploy\internal\node_modules\appmetrics\index.js:44:25
    at Array.forEach (native)

This is caused by the redundant/unused getRootModuleDir() function in probes\trace-probe.js, which can be removed.

@seabaylea seabaylea self-assigned this Sep 3, 2015
@seabaylea seabaylea added the bug label Sep 3, 2015
@seabaylea seabaylea added this to the 1.0.2 milestone Sep 3, 2015
@seabaylea
Copy link
Member Author

Fixed by PR #29 (Remove redundant getRootModuleDir code)

BethGriggs pushed a commit to BethGriggs/appmetrics that referenced this issue Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant