Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite preview #1110

Open
abhiamar opened this issue Jul 1, 2024 · 0 comments
Open

Vite preview #1110

abhiamar opened this issue Jul 1, 2024 · 0 comments

Comments

@abhiamar
Copy link

abhiamar commented Jul 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant