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

Nextjs: window is not defined #311

Open
richardpickett opened this issue Aug 8, 2024 · 1 comment
Open

Nextjs: window is not defined #311

richardpickett opened this issue Aug 8, 2024 · 1 comment

Comments

@richardpickett
Copy link

Issue #183 has resurfaced.

I tried to looking at the diff for v0.11.1 to see if I could figure out the fix. It didn't jump out at me.

For now I'm having to do this to work around:

// Question Editor:
import dynamic from "next/dynamic";
const ReactFormBuilder = dynamic(() => import("react-form-builder2").then((module) => module.ReactFormBuilder), {
  ssr: false,
});

// Question Display
import dynamic from "next/dynamic";

const ReactFormGenerator = dynamic(() => import("react-form-builder2").then((module) => module.ReactFormGenerator), {
  ssr: false,
});

@Saurav017
Copy link

Hello @richardpickett , if the issue is still there, can you please assign it to me ??

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

2 participants