npx mrm lint-staged erroring out with 'Preset "default" not found."
Asked Answered
A

1

9

Example of the issue:

❯ npx mrm lint-staged
npx: installed 298 in 9.141s

Preset “default” not found.

We’ve tried to load “mrm-preset-default” and “default” npm packages.

Can't run this command and I don't know why!

Askins answered 10/5, 2021 at 18:19 Comment(0)
A
21

The problem is within mrm which is currently in version 3 that seems to be incompatible with lint-staged, to fix this you got to specify mrm version 2 by running npx mrm@2 lint-staged

Askins answered 10/5, 2021 at 18:19 Comment(1)
Nice. That worked with npx mrm@2 gitignore as well.Helicopter

© 2022 - 2024 — McMap. All rights reserved.