Skip to content

class-list.json file write race condition #1585

Open
@estallio

Description

@estallio
  • I have searched the Issues to see if this bug has already been reported
  • I have tested the latest version

Steps to reproduce

  1. Start the flowbite-react dev server
  2. Look at the generated class-list.json file

Current behavior

Currently there is a random ] somewhere in the list whenever I start the dev server. As as result the flowbite tailwind-classes are not being generated correctly. However it is not there if generated with flowbite-react build. After some investigation I think the dev server triggers the generation process too fast and start writing the class-list file even the previous writes are not finished.

Image

Expected behavior

The class-list file is being generated correctly and the dev server waits for the previous writes to be finished.

Maybe a lock or debouncing logic fixes this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedThis bug was confirmed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions