You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I can see the @storybook/mdx1-csf dependency is in peerDependencies. But they are installed by default via NPM, as I understand it. Even if the "optional" flag is present.
I also see that this dependency is being used by the legacyMdx1 condition.
Describe the solution you'd like
It seems possible before using a dependency to check for its existence. If it is not there, ask the user to install it themselves. You can also refine the migration process to the new version, as I remember, CLI asks if I will use the legacy version of MDX.
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
yes, I can
Additional context
No response
The text was updated successfully, but these errors were encountered:
@dartess thanks for raising this. that really sucks!
I didn't realize that npm even installs optional dependencies. Making it a non-dependency will break strict package managers like pnpm/yarn pnp, but I agree it's better to do that than to give a security warning by default in npm.
Is your feature request related to a problem? Please describe
trim@0.0.1 installing by default and leads to audit problems
I am using
@storybook/addon-docs@7.0.2
After installation, I get a warning from npm and an error in the audit, since
trim@0.0.1
is installed with itAs I can see the
@storybook/mdx1-csf
dependency is inpeerDependencies
. But they are installed by default via NPM, as I understand it. Even if the "optional" flag is present.I also see that this dependency is being used by the
legacyMdx1
condition.Describe the solution you'd like
It seems possible before using a dependency to check for its existence. If it is not there, ask the user to install it themselves. You can also refine the migration process to the new version, as I remember, CLI asks if I will use the legacy version of MDX.
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
yes, I can
Additional context
No response
The text was updated successfully, but these errors were encountered: