From 53c7832fd10e05ff643b286f5cc5f7ad87827f79 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 28 Apr 2023 22:37:51 +1000 Subject: [PATCH] fix(ui): fix packaging import issue --- invokeai/frontend/web/package.json | 8 ++++++-- invokeai/frontend/web/src/services/events/middleware.ts | 2 +- .../web/src/services/events/util/setEventListeners.ts | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/invokeai/frontend/web/package.json b/invokeai/frontend/web/package.json index 3b16766bb1..05ad90e89b 100644 --- a/invokeai/frontend/web/package.json +++ b/invokeai/frontend/web/package.json @@ -15,6 +15,9 @@ } }, "types": "./dist/index.d.ts", + "files": [ + "dist" + ], "scripts": { "prepare": "cd ../../../ && husky install invokeai/frontend/web/.husky", "dev": "concurrently \"vite dev\" \"yarn run theme:watch\"", @@ -53,7 +56,6 @@ }, "dependencies": { "@chakra-ui/anatomy": "^2.1.1", - "@chakra-ui/cli": "^2.4.0", "@chakra-ui/icons": "^2.0.19", "@chakra-ui/react": "^2.6.0", "@chakra-ui/styled-system": "^2.9.0", @@ -97,7 +99,9 @@ }, "peerDependencies": { "react": "^18.2.0", - "react-dom": "^18.2.0" + "react-dom": "^18.2.0", + "ts-toolbelt": "^9.6.0", + "@chakra-ui/cli": "^2.4.0" }, "devDependencies": { "@types/dateformat": "^5.0.0", diff --git a/invokeai/frontend/web/src/services/events/middleware.ts b/invokeai/frontend/web/src/services/events/middleware.ts index 1449242afe..824e48648c 100644 --- a/invokeai/frontend/web/src/services/events/middleware.ts +++ b/invokeai/frontend/web/src/services/events/middleware.ts @@ -32,7 +32,7 @@ import { receivedModels } from 'services/thunks/model'; import { receivedOpenAPISchema } from 'services/thunks/schema'; import { isImageOutput } from 'services/types/guards'; import { imageReceived, thumbnailReceived } from 'services/thunks/image'; -import { setEventListeners } from './util/setEventListeners'; +import { setEventListeners } from 'services/events/util/setEventListeners'; export const socketMiddleware = () => { let areListenersSet = false; diff --git a/invokeai/frontend/web/src/services/events/util/setEventListeners.ts b/invokeai/frontend/web/src/services/events/util/setEventListeners.ts index a136c19f39..950cfb4083 100644 --- a/invokeai/frontend/web/src/services/events/util/setEventListeners.ts +++ b/invokeai/frontend/web/src/services/events/util/setEventListeners.ts @@ -1,5 +1,5 @@ import { MiddlewareAPI } from '@reduxjs/toolkit'; -import { AppDispatch, RootState } from 'app/store'; +import { AppDispatch, RootState } from 'app/store/store'; import { getTimestamp } from 'common/util/getTimestamp'; import { sessionCanceled } from 'services/thunks/session'; import { Socket } from 'socket.io-client';