GrapesJS / GrapesJS/react

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

Aperta
#3 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
183
Fork
44
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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 β”‚

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non Γ¨ ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.