With Next.js Got error: document is not defined
@Tatsiana8 がすでに取り組んでいます。
2025年2月5日 から。
評価
この issue はまだ評価されていません。
説明
I am getting error for FormBuilder Component.
I saw old issue from octomber 2019 which is closed https://github.com/formio/react-formio/issues/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)

- Hosting type
- Local deployment
- Frontend framework: Next.js 9.3.2
[email protected] - Browser: Google Chrome
- Browser version: 84.0.4147.125
- 主要言語
- TypeScript
- スター
- 371
- フォーク
- 309
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
formio/react のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
onChange `modified` property remains false when file component is updated再び着手できるかも @ZenMasterJacob20011 が 293 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
FormBuilder onChange callback not triggered when options prop is provided再び着手できるかも @Victoriya25 が 335 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
FormBuilder with OnChange broke textarea再び着手できるかも @lane-formio が 307 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
似ている issue
-
bot:ai-assisted component:platform-js status:untriaged
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
midnightntwrk/platform-js#38 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ranxianglei/billion-context#7068 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
mybigday/whisper.rn#348 ·
-
enhancement severity:low
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Battle-Cattle/BCUK-Bot-4#1075 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
ilan-pinto/roaring-lions#1552 ·
メンテナーはふだん 1 日以内に返信