simple-markdown
is not listed as a dependency/peer dependency
#1803
Replies: 5 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Yeah I noticed that too. So was surprised it wasn't "auto" resolved. We are however using a mono repo with yarn workspaces with an installConfig.hoistingLimit set to Our fix for now is just to add that as a dependency for us. However with that being said, if you use the package directly in your core package I think you should reference it in your package.json? I can't get to minimal reproduction for now 😅 |
Beta Was this translation helpful? Give feedback.
-
@joelpierre Since it's not a blocker for you are the moment, I am going to move it to a discussion for anyone to add more suggestions to this problem. |
Beta Was this translation helpful? Give feedback.
-
We could list these packages (which dependencies of dependencies) as dependencies of our core project. But I feel like it will make it super hard to manage and maintain dependency versions. Open for better suggestions. |
Beta Was this translation helpful? Give feedback.
-
Thats fine @vishalnarkhede , probably falling more into preference territory for sure, but in general when I build packages like this I like to be explicit with anything I use and thus import into components/utils etc. Often I have got into situations in which I rely on something another package brings along with it and then a minor/patch version later they remove their dependency on it and I am 😢 because I depended on them depending on it 😆 . Version management complexities is definitely the down side, however I am more in control of that than an external packages dependencies between versions. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Peer dependency for
simple-markdown
not specified in any package.json.Dev environment info (please complete/provide the following information):
To Reproduce
Run a dev build or standard build
Expected behavior
You should list it as a peer dependency so we know to install it and what version
Screenshots
Beta Was this translation helpful? Give feedback.
All reactions