react-chat-elements | Reactjs chat elements chat UI , react chat components | User Interface library
kandi X-RAY | react-chat-elements Summary
kandi X-RAY | react-chat-elements Summary
Reactjs chat elements chat UI, react chat components
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-chat-elements
react-chat-elements Key Features
react-chat-elements Examples and Code Snippets
Community Discussions
Trending Discussions on react-chat-elements
QUESTION
So, I'm making a small chat tool using react-chat-elements as UI library for chat components. I'd like to modify certain CSS values to match what I want to build without being tied to that specific library the way it is now (it hasn't been updated since 5 months ago).
So what I tried is fork it to my Github account, created the NPM package from it (react-chat-elements-av) without making any changes first to make sure it worked the same way as with the original. However, when I import a specific component from the NPM package I created, say import { MessageBox, SystemMessage } from "react-chat-elements-av";
, I get an error saying Attempted import error: 'MessageBox' is not exported from 'react-chat-elements-av'.
, being the attempted import location: /node_modules/react-chat-elements-av/index.
Now, if I import those two components from the original NPM package, import { MessageBox, SystemMessage } from "react-chat-elements";
, everything works and the import location is a bit different: /node_modules/react-chat-elements/dist/main.
Is there something I'm missing on the creation of that dist directory when doing npm install react-chat-elements-av
? I literally forked the original repo, and created the NPM package with it, no changes made to any webpack config or so.
Any idea what could be happening here?
Thanks in advance!
...ANSWER
Answered 2020-Apr-04 at 21:53The dist
repository is for production grade code after it has been built. It's the distribution file. try seeing how they have built their library by running npm run build
once you've downloaded it.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-chat-elements
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page