chainlit
chainlit copied to clipboard
Vite preview
trafficstars
I cloned this repository and extracted frontend folder to different directory. In package.json of frontend I changed @chainlit/react-client version from workspace to 0.1.2.
I did following steps.
- ran my backend chainlit app at port 8000
- in frontend project, I ran pnpm install
- pnpm run dev ( I can view the application in the browser and it is working fine)
- pnpm run build( this created several .js files and a css file inside dist folder)
- I ran pnpm run preview
this pnpm run preview hosted the app in localhost:4173, if I open this in browser, I can see only blank page and no errors in console tab or network tab. And I'm stuck here.
I short the frontend is working with pnpm run dev, but not pnpm run preview after pnpm run build.