chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Vite preview

Open abhiamar opened this issue 1 year ago • 0 comments
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.

  1. ran my backend chainlit app at port 8000
  2. in frontend project, I ran pnpm install
  3. pnpm run dev ( I can view the application in the browser and it is working fine)
  4. pnpm run build( this created several .js files and a css file inside dist folder)
  5. 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.

abhiamar avatar Jul 01 '24 12:07 abhiamar