When I use "type": "module" in package.json and use `pretty-quick, I get this error:
node:internal/errors:811
(frm) => !StringPrototypeStartsWith(frm.getFileName(),
^
TypeError: String.prototype.startsWith called on null or undefined
at startsWith (<anonymous>)
at node:internal/errors:811:19
at Array.filter (<anonymous>)
at node:internal/errors:809:16
at prepareStackTrace (node:internal/errors:96:12)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:38)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at importFresh (/<path>/node_modules/prettier/third-party.js:91:60)
Description
When I use
"type": "module"
inpackage.json
and use `pretty-quick, I get this error:Dependencies
"husky": "^6.0.0"
"prettier": "^2.4.1"
"pretty-quick": "^3.1.1"
Husky Command
npx pretty-quick --staged