Skip to content

Set export CHOKIDAR_USEPOLLING=true for WSL users #57846

@aaron-wolmutt

Description

@aaron-wolmutt

What do you see as an issue?

In contributing-docs\03_contributors_quick_start.rst there should be something about using the CHOKIDAR_USEPOLLING environment variable to use hot reloading in the TypeScript React UI when developing with

breeze start-airflow --development 

Solving the problem

Add in the docs that for WSL users contributing CHOKIDAR_USEPOLLING=true must be set in the environment to hot reloading the UI when developing. It could also be added to package.jsons dev command ie

{
  "name": "ui",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "engines": {
    "node": ">=22"
  },
  "homepage": "/ui",
  "scripts": {
    "dev": " CHOKIDAR_USEPOLLING=true vite --port 5173 --strictPort",
    "build": "vite build",
    "lint": "eslint --quiet && tsc --p tsconfig.app.json",
    "lint:fix": "eslint --fix && tsc --p tsconfig.app.json",
    "format": "pnpm prettier --write .",
    "preview": "vite preview",
    "codegen": "openapi-merge-cli && openapi-rq -i openapi.merged.json -c axios --format prettier -o openapi-gen --operationId",
    "test": "vitest run",
    "coverage": "vitest run --coverage"
  },
...
}

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:UIRelated to UI/UX. For Frontend Developers.kind:bugThis is a clearly a bugkind:documentationneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions