Open robertkiel opened 3 years ago
Same error on Node v.15.5.0. thx for the PR, hoping it will get merged asap
A simpler change is just to read the VERSION from Command defined in line 6:
var Command = require('./index.js'),
...
// VERSION = require('../../index').VERSION
VERSION = Command.VERSION,
👍 Can we get this change merged?
@gotwarlost Hello from 2023. Can we please get this merged?
Assuming this repo remains confusingly not archived, from npm's instanbul:
This module is no longer maintained, try this instead: npm i nyc Visit https://istanbul.js.org/integrations for other alternatives.
Looking for a fix on this issue. The nyc
command doesn't seem to fix the issue in the babel-plugin-istanbul
package, which seems to be the cause of this.
Thanks,
Istanbul version
0.4.5
seems to produce a circular dependency when using Node.JS 14The problem seems to be that VERSION is loaded before lib/commands/index.js is built and ready to be exported.
Requiring VERSION once it is needed, namely once the
help
command runs, solves the problem.Referring to issue https://github.com/hoprnet/hoprnet/issues/1241.