Replies: 1 comment 1 reply
-
I am not sure why typeorm can find it. pnpm should remove all the symlinks pointing to it. If you want to disable this case, set modules-cache-max-age=0 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using TypeORM to connect to a MySQL database, and TypeORM has mysql2 listed as a peer dependency. It imports mysql2 using require("mysql2"). When I use pnpm install typeorm mysql2, everything works fine. However, when I use pnpm remove mysql2, the .pnpm directory inside node_modules still keeps the mysql2 dependency. This results in a situation where even though I've removed the mysql2 dependency, TypeORM can still find it normally, and the database connection remains functional.
Beta Was this translation helpful? Give feedback.
All reactions