Comments (5)
Gotcha, I see where the problem is. Apparently package.json
exports
does not work the same as for main
and module
fields. exports
field needs explicit .cjs
or .mjs
file extensions for the bundler/package manager to know how to import and treat the file, derp, why can't it work just like main
and module
.
This might have to bring in a breaking change.
from flowbite-react.
Getting the same issue when upgrading flowbite-react from 0.7.5 to 0.7.8 in an astro/vite project
07:48:01 [ERROR] file:///app/dist/server/chunks/pages/index_xBUQ-xOB.mjs:26
import { Datepicker } from 'flowbite-react';
^^^^^^^^^^
SyntaxError: Named export 'Datepicker' not found. The requested module 'flowbite-react' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'flowbite-react';
const { Datepicker } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
at async NodeApp.render (file:///app/dist/server/entry.mjs:1240:45)
at async file:///app/dist/server/entry.mjs:1590:24
from flowbite-react.
Is ur app using the new vite
dev server or the classic remix one (remix.config.js
)?
from flowbite-react.
It is the classic one, with an Express server (https://github.com/remix-run/remix/tree/main/templates/classic-remix-compiler/express)
from flowbite-react.
Released 0.8.0
which focuses on fixing the build step of the library and streamlining the onboarding both as a contributor and as a library user.
Please read the release changelog for the breaking changes and the steps to upgrade.
from flowbite-react.
Related Issues (20)
- Tab.Item onClick is full outlined.
- bug: Datepicker always displays below input field
- Theme sync may cause render loops across different browser tabs HOT 3
- Flowbite setup with NX Monorepo HOT 6
- Feature request: friendly version of Floating as a new component. HOT 1
- react-icons v5 (required by ui/package.json) is not type compatible with icon prop in components like Alert HOT 1
- Toggle switch UI not showing properly. HOT 8
- Select a Month, Year Change is not working.
- <Modal.Overlay> || <Modal.Base>
- Datepicker is not allowing clearing date
- Some component (at least my spinner and button) are broken after upgrade to 0.9.0 and 0.8.0 from 0.7.3 HOT 1
- Avatar should render dummy svg when provided with render function
- Text from date picker coverd by icon? Missing styling HOT 1
- Flowbite button does not have attribute download
- Datepicker update value
- ERR_MODULE_NOT_FOUND: Cannot find module flowbite/plugin HOT 1
- Date Picker Auto Hide
- Sidebar couldn't redesign its shape HOT 1
- Module '"flowbite-react"' has no exported member 'Drawer'. HOT 2
- Allow Datepicker to be empty
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flowbite-react.