Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Icons are not going to be showing without a build ( gulp file is not triggered in dev mode )

Open emrahtoy opened this issue 2 years ago • 3 comments

Describe the bug Icons are not working in the panel in case you don't trigger build before "yarn dev"

To Reproduce

  1. Clone the project
  2. yarn install
  3. yarn dev
  4. check the panel

Expected behavior Icons should be seen as it should be.

emrahtoy avatar Jun 17 '23 06:06 emrahtoy

perhaps we can change this line to tsc --watch && gulp?

HenryHengZJ avatar Jun 17 '23 09:06 HenryHengZJ

I believe it won't work as the dependency to the components is a library dependency, not a local library dependency or a link dependency.

Depending on version of the yarn it should be something like one of these;

yarn version >= 2.x

yarn add flowise-components@file:packages/components flowise-ui@file:packages/ui

yarn version < 2

yarn add file:packages/components file:packages/ui

yet I still am not sure if this could work as intended in the development mode. Because we need all the projects running in development mode so we can debug.

I also remember something about yarn link but I couldn't have time for a test.

emrahtoy avatar Jun 18 '23 05:06 emrahtoy

It should be gulp && tsc --watch

I have tested "yarn link" and it solves local library problem.

  1. cd packages/ui
  2. yarn link
  3. cd ../components
  4. yarn link
  5. cd ../server
  6. yarn link flowise-ui flowise-components

I think this should be exist in documentation too.

emrahtoy avatar Jun 18 '23 07:06 emrahtoy