Comments (7)
@eeeman1 are you using some SSR like Next.js or something like that? I believe the V3 doesn't support SSR. I'm having a problem with document is not defined
too, but that's because Node.js doesn't have access to the DOM API as document
for example. So every time your app renders though the backend you'll get this error.
P.S. If you are not using any SSR then ignore this comment π
from emoji-picker-react.
yeah getting this cuz of ssr. To turn of ssr use dynmaic~
import dynamic from "next/dynamic";
const NoSSRComponent = dynamic(() => import("../components/NoSSRComponent"), {
ssr: false,
});
from emoji-picker-react.
Hey @eeeman1, your example is not sufficient for me to reproduce what you're describing. See this: https://stackblitz.com/edit/emoji-picker-react-gv9idx?file=index.js
Can you try to create a new blitz that reproduces your bug?
from emoji-picker-react.
@gasscoelho hey, in general, no, the picker does not support ssr - and I believe it also shouldn't for multiple reasons.
The technical reason it doesn't support ssr is due to the way css is handled. If you really need ssr support, you could probably grab the files directly from source, and configure transpiling of that module as well.
I would recommend, though, unless you really need the picker visible on initial load not to render it on the server, but instead show it later, or even better - dynamically import it later on. It is a pretty heavy component with lots of assets, and thousands of elements. It also runs a pretty intense mapping of search keywords right at start.
from emoji-picker-react.
from emoji-picker-react.
use dynamic import in nextjs it just because of serverside rendering
from emoji-picker-react.
closing as duplicate of #184
from emoji-picker-react.
Related Issues (20)
- Custom emojis HOT 2
- Size of the library + SSR HOT 2
- Question: How to put apple smile in my input? (React)
- Enable/disable images as source for emojis HOT 2
- i wish there will be `how to run` section at readme file HOT 2
- onEmojiClick doesn't have access to the current state of the parent component HOT 8
- Missing & double emojis on Windows 11 HOT 3
- can't select "hand with fingers splayed" emoji in any skin colour other than Neutral HOT 5
- Can't load custom emojis from an API call. HOT 7
- ζ ζ³εͺιθ¦ι¨ε葨ζ HOT 2
- how about upgrade project to use current node version? HOT 2
- `npm install` & `npm run storybook` instructions at contributing.md. should it be `yarn` & `yarn storybook`?
- Emojis aren't appearing on macOS Sonoma Chrome until hovering over them HOT 2
- emoji.length is 5 for some emojies and 2 for some HOT 1
- not working in electron windows. HOT 9
- Can I choose several emojis to form a group? And configure its navigation and headerοΌ HOT 5
- aria-label and title in Clear button HOT 1
- Accessible names of icons HOT 3
- Emoji Picker is downloading a ton of png emojis every render HOT 1
- emoji image loading failed
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 emoji-picker-react.