bracesproul / gen-ui-python

🧬🐍 Generative UI web application built with LangChain Python, AI SDK & Next.js
276 stars 74 forks source link

Production build doesn't work #13

Open kinivi opened 2 months ago

kinivi commented 2 months ago

with yarn build yarn start

When tools results is loading, they blink and then everything disappears. No issues with yarn dev, just with prod build.

xiaojinwhu commented 1 month ago

I've encountered the same problem.

I'm experiencing an issue where components defined in NODE_COMPONENT_MAP work correctly in the development environment (pnpm dev), but after building and starting the production environment (pnpm build and pnpm start), these components briefly show a loading state, display data momentarily, and then disappear. This behavior occurs with components like the weather component. The application's behavior is inconsistent between development and production builds. Steps to Reproduce

  1. Run the application in development mode using pnpm dev. Components render and function as expected.
  2. Build the application for production using pnpm build.
  3. Start the application in production mode using pnpm start.
  4. Observe that components show a loading state, display data briefly, and then disappear.

Attempted Solutions