With the latest version I get this error when following the quick guide:
➜ radius npx radius-tracker in-place --targetRe "test"
radius-tracker in-place [path]
Stats collected directly from the filesystem
Positionals:
path [string]
Options:
--help Show help [boolean]
--version Show version number [boolean]
--ignoredFileRe [string]
--tsconfigPath [string]
--jsconfigPath [string]
--outfile [string]
--in-place
----targetRe
--^@aily-labs/ui
Error: Expected a set of regexps in domReferenceFactories, got: undefined
at resolveStatsConfig (/Users/user/.npm/_npx/affac18e41488626/node_modules/radius-tracker/cjs/cli/resolveStatsConfig.js:86:15)
at /Users/user/.npm/_npx/affac18e41488626/node_modules/radius-tracker/cjs/cli/inplace/index.js:41:64
at Generator.next (<anonymous>)
at /Users/gerardbrull/.npm/_npx/affac18e41488626/node_modules/tslib/tslib.js:169:75
at new Promise (<anonymous>)
at Object.__awaiter (/Users/user/.npm/_npx/affac18e41488626/node_modules/tslib/tslib.js:165:16)
at Object.handler (/Users/user/.npm/_npx/affac18e41488626/node_modules/radius-tracker/cjs/cli/inplace/index.js:22:81)
at /Users/user/.npm/_npx/affac18e41488626/node_modules/yargs/build/index.cjs:1:8993
at j (/Users/user/.npm/_npx/affac18e41488626/node_modules/yargs/build/index.cjs:1:4956)
at _.handleValidationAndGetResult (/Users/user/.npm/_npx/affac18e41488626/node_modules/yargs/build/index.cjs:1:8962)
Tested
I tried with NPM 9 and 10 and pnpx, but it doesn't work
Workaround
Lowering 1 version of the library works.
I tried npx radius-tracker@0.0.64 in-place --targetRe "^@aily-labs/ui" and works as expected.
Solution
I don't know, but most likely it's due to a change in the latest version. I would also encourage writing a test.
Can I fix it?
Unfortunately, due to time constraints and lack of knowledge of the source code I can't fix it at the moment, but I would like to help in mid/short term.
Hello,
With the latest version I get this error when following the quick guide:
Tested
I tried with NPM 9 and 10 and pnpx, but it doesn't work
Workaround
Lowering 1 version of the library works. I tried
npx radius-tracker@0.0.64 in-place --targetRe "^@aily-labs/ui"
and works as expected.Solution
I don't know, but most likely it's due to a change in the latest version. I would also encourage writing a test.
Can I fix it?
Unfortunately, due to time constraints and lack of knowledge of the source code I can't fix it at the moment, but I would like to help in mid/short term.