GrapesJS / GrapesJS/react

[ERROR] Could not resolve "react" / "react-dom"

オープン
#3 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
183
フォーク
44
PR マージ指標
30日以内にマージされた PR はありません

説明

Doesn't seem to work with Remix, get the following errors. I've tried a number of workarounds with no prevail. Any suggestions on how to remedy these errors?

11:21:51 │ remix │
11:21:51 │ remix │ 💿 remix dev
11:21:51 │ remix │
11:21:51 │ webhooks │ Sending APP_UNINSTALLED webhook to app server
11:21:51 │ remix │ info building...
11:21:52 │ remix │ ✘ [ERROR] Could not resolve "react"
11:21:52 │ remix │
11:21:52 │ remix │ ../node_modules/@grapesjs/react/dist/index.js:1:150:
11:21:52 │ remix │ 1 │ ...as C, memo as A, useMemo as Ne, createElement as Ve } from "react";
11:21:52 │ remix │ ╵ ~~~~~~~
11:21:52 │ remix │
11:21:52 │ remix │ You can mark the path "react" as external to exclude it from the bundle, which will remove this error.
11:21:52 │ remix │
11:21:52 │ remix │
11:21:52 │ remix │ ✘ [ERROR] Could not resolve "react-dom"
11:21:52 │ remix │
11:21:52 │ remix │ ../node_modules/@grapesjs/react/dist/index.js:2:35:
11:21:52 │ remix │ 2 │ import { createPortal as Tt } from "react-dom";
11:21:52 │ remix │ ╵ ~~~~~~~~~~~
11:21:52 │ remix │
11:21:52 │ remix │ You can mark the path "react-dom" as external to exclude it from the bundle, which will remove this error.
11:21:52 │ remix │
11:21:52 │ remix │

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。