Problem running Flet application in Replit

Hello everyone,

I’m encountering an issue when trying to run a Flet application in Replit, and I need help to resolve it. I’ve followed the installation steps for Flet, but the application doesn’t display anything in the browser.

  • Python Version: [Specify the Python version you are using in Replit, e.g., Python 3.10]
  • Installed Packages: [List the packages you’ve installed in your Replit project]
  • Application Code: [Provide the code for your Flet application so that other users can review it]
    The application should display a window in the web browser with the message “Hello, world!”
    The application runs without errors but doesn’t display anything in the browser.
    I would greatly appreciate any guidance or suggestions on how to resolve this issue. If anyone has experience with running Flet applications in Replit, I’d be delighted to hear your advice.

import flet as ft

def main(page: ft.Page):
    page.add(ft.Text(value="Hello, world!"))

Is posible your way to run it, try:, view=ft.AppView.WEB_BROWSER)