Skip to content

Cannot generate file .flowbite-react/class-list.json when deploying on Vercel #1619

@Radiquum

Description

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

Steps to reproduce

Deploy nextjs app with flowbite-react on Vercel

Current behavior

In build logs I have the following error:

Failed to generate .flowbite-react/class-list.json: TypeError: this.checkedMap.values(...).find is not a function
    at get showWarning [as showWarning] (file:///vercel/path0/node_modules/flowbite-react/dist/cli/utils/create-init-logger.js:13:39)
    at Object.log (file:///vercel/path0/node_modules/flowbite-react/dist/cli/utils/create-init-logger.js:30:39)
    at build (file:///vercel/path0/node_modules/flowbite-react/dist/cli/commands/build.js:44:16)

And some styles for components like Modal, Button and Dropdown are not working properly.

Expected behavior

No error and right styles

Context

Issue appeared after updating from V0.11.7 to V0.12.7

NextJS: 14.2.26
Tailwind: 3.4.1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions