prettier icon indicating copy to clipboard operation
prettier copied to clipboard

Search and replace bug in monorepo

Open TomCorvus opened this issue 2 years ago • 2 comments

👋 Hi,

I have a monorepo with multiple sub packages with their own config file. When I try to find and replace an occurence in these files, prettier takes the entirely first file content in results and paste it in the others. This bug occurs when files have not the same name too.

prettier ^3.0.3
Prettier - Code formatter v10.1.0
yarn 3.6.4 installConfig.hoistingLimits: "dependencies"

https://github.com/prettier/prettier/assets/3451011/ad360eb7-0b34-4ef2-8a12-e85941f62de5

Repro: https://github.com/TomCorvus/prettier-monorepo

TomCorvus avatar Oct 12 '23 08:10 TomCorvus

I'm also experiencing this problem, any solutions please?

Currently I can solve this problem by downgrading to version 2.8.7

verynong avatar Jul 31 '24 06:07 verynong

I think this issue has fallen into the deep end. @fisker can you check this issue or attribute it to someone please? Thank you

TomCorvus avatar Aug 02 '24 11:08 TomCorvus