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

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

Open
xstortionist opened this issue Nov 3, 2023 · 0 comments
Open

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

xstortionist opened this issue Nov 3, 2023 · 0 comments

Comments

@xstortionist
Copy link

xstortionist commented Nov 3, 2023

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 │

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

1 participant