From 5f168073d7128e48db7a7d7585adbfb2bc532bc5 Mon Sep 17 00:00:00 2001 From: Dariusz Plawecki Date: Tue, 17 Dec 2024 11:12:34 +0100 Subject: [PATCH] chore: fix build (PROVCON-3003) --- package.json | 1 + packages/elements-core/src/hooks/useRouter.tsx | 2 +- yarn.lock | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a47076544..df2d7389a 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "@storybook/addon-styling-webpack": "0.0.5", "@storybook/addon-toolbars": "7.5.3", "@storybook/addon-viewport": "7.5.3", + "@storybook/addons": "7.5.3", "@storybook/react": "7.5.3", "@storybook/react-webpack5": "7.5.3", "@storybook/theming": "7.5.3", diff --git a/packages/elements-core/src/hooks/useRouter.tsx b/packages/elements-core/src/hooks/useRouter.tsx index 17ad4ce78..f329ca23c 100644 --- a/packages/elements-core/src/hooks/useRouter.tsx +++ b/packages/elements-core/src/hooks/useRouter.tsx @@ -1,7 +1,7 @@ import { Dictionary } from '@stoplight/types'; import * as React from 'react'; import { BrowserRouter, HashRouter, MemoryRouter } from 'react-router-dom'; -import { StaticRouter } from 'react-router-dom/server'; +import { StaticRouter } from 'react-router-dom/server.js'; import { RouterType } from '../types'; diff --git a/yarn.lock b/yarn.lock index 3e8523847..980a235e4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6322,6 +6322,15 @@ memoizerific "^1.11.3" prop-types "^15.7.2" +"@storybook/addons@7.5.3": + version "7.5.3" + resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-7.5.3.tgz#1a96c290a171ea97b255d9892e86f0e7c3517cd2" + integrity sha512-1JDndMZ/Pju4YJ4aXegeF0O6BVT19c+Gu7WOlsD0aHbmAsPK5qH9QvcpR04nby6VrVZYtBOEJhGsWtAytzLVZw== + dependencies: + "@storybook/manager-api" "7.5.3" + "@storybook/preview-api" "7.5.3" + "@storybook/types" "7.5.3" + "@storybook/blocks@7.5.3": version "7.5.3" resolved "https://registry.npmjs.org/@storybook/blocks/-/blocks-7.5.3.tgz"