You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the following error in knip@1.0.0-beta.1
/node_modules/knip/dist/util/modules.js:6
const match = value.replace(/\\/g, '/').match(/(?<=node_modules\/)(@[^/]+\/[^/]+|[^/]+)/);
^
TypeError: value.replace is not a function
at getPackageName (/node_modules/knip/dist/util/modules.js:6:25)
at Array.map (<anonymous>)
at findPostCSSDependencies (/node_modules/knip/dist/plugins/postcss/index.js:13:90)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /node_modules/knip/dist/workspace-worker.js:232:34
at async Promise.all (index 0)
at async WorkspaceWorker.findDependenciesByPlugin (/node_modules/knip/dist/workspace-worker.js:231:45)
at async WorkspaceWorker.findDependenciesByPlugins (/node_modules/knip/dist/workspace-worker.js:209:42)
at async main (/node_modules/knip/dist/index.js:179:80)
at async run (/node_modules/knip/dist/cli.js:21:46)
It seems to break when reading the package name from postcss.config.js
Our postcss.config.js contains the autoprefixer import which is a function instead of a string :)
I'm getting the following error in knip@1.0.0-beta.1
It seems to break when reading the package name from
postcss.config.js
Our postcss.config.js contains the autoprefixer import which is a function instead of a string :)
The text was updated successfully, but these errors were encountered: