Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid type #123

Open
mlbiche opened this issue Feb 18, 2021 · 1 comment
Open

Invalid type #123

mlbiche opened this issue Feb 18, 2021 · 1 comment

Comments

@mlbiche
Copy link

mlbiche commented Feb 18, 2021

While using pretty-quick --staged on husky pre-commit hook, I am getting the following error :

			C:\dev\workspace\humanroads\gps\node_modules\pretty-quick\dist\scms\git.js:60
			throw error;
			^
			TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
			at validateString (internal/validators.js:112:11)
			at Object.normalize (path.js:266:5)
			at parseNonShell (C:\dev\workspace\humanroads\gps\node_modules\pretty-quick\node_modules\cross-spawn\lib\parse.js:49:31)
			at Function.parse [as _parse] (C:\dev\workspace\humanroads\gps\node_modules\pretty-quick\node_modules\cross-spawn\lib\parse.js:88:37)
			at handleArguments (C:\dev\workspace\humanroads\gps\node_modules\pretty-quick\node_modules\execa\index.js:28:28)
			at Function.module.exports.sync (C:\dev\workspace\humanroads\gps\node_modules\pretty-quick\node_modules\execa\index.js:162:17)
			at runGit (C:\dev\workspace\humanroads\gps\node_modules\pretty-quick\dist\scms... (show balloon)

I am using [email protected] with [email protected] on Windows.

Any ideas ? 🤙

@JounQin
Copy link
Member

JounQin commented Jan 16, 2024

A minimal but runnable online reproduction is required.

I can imagemin that it's related to Windows compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants