istanbuljs / babel-plugin-istanbul

A babel plugin that adds istanbul instrumentation to ES6 code
BSD 3-Clause "New" or "Revised" License
616 stars 72 forks source link

Circular Dependency Issue #286

Open StrictlySkyler opened 10 months ago

StrictlySkyler commented 10 months ago

Hi folks, it looks like there's an outstanding issue related to istanbul and Node 14+, which seems to have propagated into this plugin. Here's the error it spits when running a coverage report on 6.1.1:

W20230821-23:42:51.097(-7)? (STDERR) (node:40255) Warning: Accessing non-existent property 'VERSION' of module exports inside circular dependency
W20230821-23:42:51.098(-7)? (STDERR)     at emitCircularRequireWarning (internal/modules/cjs/loader.js:705:11)
W20230821-23:42:51.098(-7)? (STDERR)     at Object.get (internal/modules/cjs/loader.js:719:5)
W20230821-23:42:51.098(-7)? (STDERR)     at Object.<anonymous> (/home/skyler/.meteor/packages/lmieulet_meteor-coverage/.4.1.0.8m3704.aeijg++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/istanbul/lib/command/help.js:9:37)
W20230821-23:42:51.098(-7)? (STDERR)     at Module._compile (internal/modules/cjs/loader.js:1116:14)
W20230821-23:42:51.099(-7)? (STDERR)     at Module.Mp._compile (/tmp/meteor-test-runyrfiaa.xznoo/.meteor/local/build/programs/server/runtime.js:77:23)
W20230821-23:42:51.099(-7)? (STDERR)     at Object.Module._extensions..js (/tmp/meteor-test-runyrfiaa.xznoo/.meteor/local/build/programs/server/runtime.js:105:23)
W20230821-23:42:51.099(-7)? (STDERR)     at Module.load (internal/modules/cjs/loader.js:981:32)
W20230821-23:42:51.099(-7)? (STDERR)     at Module.Mp.load (/tmp/meteor-test-runyrfiaa.xznoo/.meteor/local/build/programs/server/runtime.js:37:33)
W20230821-23:42:51.099(-7)? (STDERR)     at Function.Module._load (internal/modules/cjs/loader.js:821:12)
W20230821-23:42:51.099(-7)? (STDERR)     at Module.require (internal/modules/cjs/loader.js:1005:19)
W20230821-23:42:51.100(-7)? (STDERR)     at require (internal/modules/cjs/helpers.js:107:18)
W20230821-23:42:51.100(-7)? (STDERR)     at /home/skyler/.meteor/packages/lmieulet_meteor-coverage/.4.1.0.8m3704.aeijg++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/istanbul/lib/util/factory.js:56:35
W20230821-23:42:51.100(-7)? (STDERR)     at Array.forEach (<anonymous>)
W20230821-23:42:51.100(-7)? (STDERR)     at Factory.loadStandard (/home/skyler/.meteor/packages/lmieulet_meteor-coverage/.4.1.0.8m3704.aeijg++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/istanbul/lib/util/factory.js:53:29)
W20230821-23:42:51.100(-7)? (STDERR)     at Object.<anonymous> (/home/skyler/.meteor/packages/lmieulet_meteor-coverage/.4.1.0.8m3704.aeijg++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/istanbul/lib/register-plugins.js:12:9)
W20230821-23:42:51.100(-7)? (STDERR)     at Module._compile (internal/modules/cjs/loader.js:1116:14)

Seems to be referenced on the old repo over here: https://github.com/gotwarlost/istanbul/pull/940

How can we get this issue fixed?

Thanks,