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

window is not defined #6

Open
grantralls opened this issue May 13, 2019 · 4 comments
Open

window is not defined #6

grantralls opened this issue May 13, 2019 · 4 comments

Comments

@grantralls
Copy link

I imported the package as FlareComponent and called it using the example in the ReadMe. The error I get is "window is not defined" (../FlareReact.js:10:4) I am using nextjs and the file is .flr2d as opposed to .flr

@AntwanSherif
Copy link

@grantralls I have the same issue with nextjs. Did you find a solution/ workaround?

@neio-dev
Copy link

.flr2d is the file format used for project file. You need to go to 'Export' instead of 'Download file'
image

@Kassan424kh
Copy link

I use .flr file but I still get the same issue, any help

@Kassan424kh
Copy link

OK i found the solution to get flare work in next-js

import dynamic from "next/dynamic";

const FlareComponent = dynamic(() => import("flare-react"), {ssr: false});

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

4 participants