-
-
Notifications
You must be signed in to change notification settings - Fork 476
Labels
🐛 bugSomething isn't workingSomething isn't workingconfirmedThis bug was confirmedThis bug was confirmed
Description
- I have searched the Issues to see if this bug has already been reported
- I have tested the latest version
Steps to reproduce
- Have ESM Tailwind config (.mjs)
- Import flowbite-react the new way:
import flowbite from 'flowbite-react/tailwind'; - Add content and plugin
Current behavior
Getting error
[Failed to load PostCSS config: Failed to load PostCSS config (searchPath: /Users/antonioivanovski/dev/verified-os/applications/web/dashboard): [Error] Cannot find module '/Users/antonioivanovski/dev/verified-os/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/flowbite/plugin' imported from /Users/antonioivanovski/dev/verified-os/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/flowbite-react/dist/esm/tailwind.mjs
Did you mean to import [email protected]/node_modules/flowbite/plugin.js?
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/antonioivanovski/dev/verified-os/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/flowbite/plugin' imported from /Users/antonioivanovski/dev/verified-os/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/flowbite-react/dist/esm/tailwind.mjs
Did you mean to import [email protected]/node_modules/flowbite/plugin.js?
at finalizeResolution (node:internal/modules/esm/resolve:264:11)
at moduleResolve (node:internal/modules/esm/resolve:917:10)
at defaultResolve (node:internal/modules/esm/resolve:1130:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)] {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///Users/antonioivanovski/dev/verified-os/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/flowbite/plugin'
}
Node.js v20.11.0
Expected behavior
The config is loaded correctly
Context
The import in the flowbite-react/tailwind for the flowbitePlugin needs to be import flowbitePlugin from 'flowbite/plugin.js';
My current workaround is to do pnpm patch for this import.
Metadata
Metadata
Assignees
Labels
🐛 bugSomething isn't workingSomething isn't workingconfirmedThis bug was confirmedThis bug was confirmed