mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-17 05:02:23 +08:00
fix check for devDependencies, but that key is not always defined.
This commit is contained in:
parent
f5aa7bd182
commit
635d4343ee
@ -63,7 +63,7 @@ export const link = async ({ target, local, start }: LinkOptions) => {
|
||||
`Magic stuff related to @storybook/preset-create-react-app, we need to fix peerDependencies`
|
||||
);
|
||||
|
||||
if (!reproPackageJson.devDependencies.vite) {
|
||||
if (!reproPackageJson.devDependencies?.vite) {
|
||||
await exec(`yarn add -D webpack-hot-middleware`, { cwd: reproDir });
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user