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

With Next.js Got error: document is not defined #335

Open
vivekvt opened this issue Sep 23, 2020 · 5 comments
Open

With Next.js Got error: document is not defined #335

vivekvt opened this issue Sep 23, 2020 · 5 comments
Assignees
Labels

Comments

@vivekvt
Copy link

vivekvt commented Sep 23, 2020

I am getting error for FormBuilder Component.
I saw old issue from octomber 2019 which is closed #253 which told react-formio@4 will have SSR Support.
I am got same error in [email protected]
document is not defined

ReferenceError: document is not defined
    at Object.<anonymous> (/home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:869:23)
    at Object.8 (/home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:895:4)
    at s (/home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:1:621)
    at /home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:1:672
    at Object.<anonymous> (/home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:724:19)
    at Object.6../eventmap (/home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:824:4)
    at s (/home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:1:621)
    at /home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:1:672
    at Object.<anonymous> (/home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:41:17)
    at Object.2../classes (/home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:647:4)
    at s (/home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:1:621)
    at e (/home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:1:792)
    at /home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:1:810
    at /home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:1:88
    at Object.<anonymous> (/home/vivekvt/Desktop/codemarket.io/unita/files/node_modules/dragula/dist/dragula.js:1:323)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)

Screenshot from 2020-09-23 20-53-46

  • Hosting type
    • Local deployment
  • Frontend framework: Next.js 9.3.2
    [email protected]
  • Browser: Google Chrome
  • Browser version: 84.0.4147.125
@vivekvt vivekvt added the bug label Sep 23, 2020
@TanyaGashtold
Copy link
Contributor

I am closing the issue as it was created too long ago and there is no new comments here. If the issue is not resolved, please reopen it. Thanks!

@umarq91
Copy link

umarq91 commented Jan 31, 2025

This is still not resolved. Can we reopen this? I am using Next and getting this error constantly:

Next: 15.1.5
React: 18.3.1

@lane-formio lane-formio reopened this Feb 4, 2025
@lane-formio
Copy link
Contributor

Are you using @formio/[email protected]?

@umarq91
Copy link

umarq91 commented Feb 6, 2025

Yes its 6.0.0

@brendanbond
Copy link
Contributor

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

No branches or pull requests

6 participants