Skip to content

Commit a89a098

Browse files
fix: Error: Cannot find module 'tailwindcss/plugin' (#1607)
* fix: update tailwindcss plugin import paths in rollup config and source file * changeset
1 parent 262cde0 commit a89a098

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.changeset/calm-rooms-flow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"flowbite-react": patch
3+
---
4+
5+
fix: `Error: Cannot find module 'tailwindcss/plugin'`

packages/ui/rollup.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ let entries = await Array.fromAsync(new Glob("src/**/*").scan());
88
entries = entries.filter((path) => !path.includes(".test.")).sort();
99

1010
const external = [
11+
"ast-types",
1112
"child_process",
1213
"fs/promises",
1314
"klona/json",
@@ -17,7 +18,7 @@ const external = [
1718
"path",
1819
"react/jsx-runtime",
1920
"readline",
20-
"tailwindcss/plugin",
21+
"tailwindcss/plugin.js",
2122
...Object.keys({
2223
...packageJson.dependencies,
2324
...packageJson.devDependencies,

packages/ui/src/plugin/tailwindcss/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import plugin from "tailwindcss/plugin";
1+
import plugin from "tailwindcss/plugin.js";
22
import { config } from "./config";
33

44
export default plugin(

0 commit comments

Comments
 (0)