openui icon indicating copy to clipboard operation
openui copied to clipboard

Fix: the returned data cannot be rendered

Open YangZhiBoGreenHand opened this issue 10 months ago • 5 comments

If you start with docker and port 7878 is mapped to 17878, rendering will fail

YangZhiBoGreenHand avatar Apr 07 '24 10:04 YangZhiBoGreenHand

image The image is self-installing your dockerfile package

YangZhiBoGreenHand avatar Apr 07 '24 10:04 YangZhiBoGreenHand

image If this place caused it?

YangZhiBoGreenHand avatar Apr 07 '24 10:04 YangZhiBoGreenHand

image There is html data but not render

YangZhiBoGreenHand avatar Apr 07 '24 10:04 YangZhiBoGreenHand

@YangZhiBoGreenHand if you're not running the backend on the default port you'll need to rebuild the container in "hosted" mode. From the frontend directory run:

npm install
npm run build -- --mode hosted

Then rebuild the backend container (docker-compose build), that should fix the issue you're seeing. Let me know if it doesn't.

vanpelt avatar Apr 07 '24 22:04 vanpelt

Hi,

I had the same issue. Running npm install and build hosted worked for me :)

BeeTwenty avatar Apr 09 '24 07:04 BeeTwenty