From 395d685cc769bafb78096b5eede702581202fca9 Mon Sep 17 00:00:00 2001 From: Dormeh Date: Mon, 25 Dec 2023 13:28:51 +0300 Subject: [PATCH] fixes storybook build error --- config/storybook/decorators/StoreDecorator.js | 2 +- config/storybook/webpack.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/storybook/decorators/StoreDecorator.js b/config/storybook/decorators/StoreDecorator.js index b976cca8..3094a499 100644 --- a/config/storybook/decorators/StoreDecorator.js +++ b/config/storybook/decorators/StoreDecorator.js @@ -1,4 +1,4 @@ -import {StoreProvider} from "../../../src/app/providers/SroreProvider/index.js"; +import {StoreProvider} from "../../../src/app/providers/SroreProvider/index.ts"; export const StoreDecorator = (initialState) => (Story) => ( diff --git a/config/storybook/webpack.config.js b/config/storybook/webpack.config.js index 11ad0f75..170287e3 100644 --- a/config/storybook/webpack.config.js +++ b/config/storybook/webpack.config.js @@ -21,6 +21,7 @@ module.exports = ({ config }) => { config?.plugins?.push( new DefinePlugin({ __API__: JSON.stringify(process.env.APP_HOSTNAME), + __IS_DEV__: true, }), );