Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next js app server error when emoji-mart init function #742

Closed
keven1024 opened this issue Nov 21, 2022 · 4 comments
Closed

next js app server error when emoji-mart init function #742

keven1024 opened this issue Nov 21, 2022 · 4 comments

Comments

@keven1024
Copy link

when i use it

import {init} from "emoji-mart";
import data from '@emoji-mart/data'
init({data})

with next.js(ssr) , I get
image

@phil-loops
Copy link

Potentially a duplicate of #735

@keven1024
Copy link
Author

Potentially a duplicate of #735

The solution to #735 does not apply to init()
I tried using useEffect, but I still get the error above.

@phil-loops
Copy link

The solution to 735 was lazily loading in the package before trying to run any of the functions. I'm noting that the ReferenceError in both cases is identical.

@EtienneLem
Copy link
Member

Should be fixed in v5.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants