Closed dpkpaa closed 3 years ago
+1 also got this
I'm getting the same error as well.
Can you share your next-unused
configuration?
Hi for me issue was in index.js line 71
madge(madgePath, {
webpackConfig: path.resolve(__dirname, "madge.webpack.js"),
**-> tsConfig: path.resolve(process.cwd(), "tsconfig.json"),**
excludeRegExp: [searchDirs, ...exclude, "(^|\/)(\.(?!\.).+)$"],
fileExtensions: ["js", "jsx", "ts", "tsx"],
}).then((res) => {
I just commented the line as I guess it is a remaining part of Typescript and then it works.
BTW Very useful package - thanks
Fixed in 0.0.3
, thanks!
after running yarn find:unused getting UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined i am using next@9.2.2