sonner icon indicating copy to clipboard operation
sonner copied to clipboard

It breaks my package.lock

Open ilearnio opened this issue 1 year ago • 4 comments

Describe the feature / bug 📝:

I have a monorepo project with npm workspaces, when installing sonner, it changes my package.lock by removing my frontend/node_modules/react package and reinstalling react from "node_modules/react". Same version but it breaks my app. If you could remove "peerDependencies" from your package.json, I would really appreciate it! IMO it only adds errors most of the times and provides no benefits

image

ilearnio avatar Jan 08 '24 22:01 ilearnio

try deleting node_modules and package.lock and reinstalling all packages

Rychillie avatar Jan 09 '24 14:01 Rychillie

Like @Rychillie mentioned, did that help?

emilkowalski avatar Jan 14 '24 11:01 emilkowalski

@emilkowalski I tried but that didn’t help. So what I did is I temporarily fixed the package.lock manually, and reinstalled everything with “npm ci”

ilearnio avatar Jan 14 '24 13:01 ilearnio

Would appreciate a codesandbox demo if you think this has to do with Sonner 👍🏻

emilkowalski avatar Jan 14 '24 18:01 emilkowalski