Installation and required dependencies #1137
Unanswered
ctessier
asked this question in
Help (React)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
While setting up Inertia with React in Laravel for a new project, I am getting an error saying
react-dom
cannot be resolved.I looked at my dependency tree and I see that
react
is here, but indeed, notreact-dom
. Note that despite the Inertia packages, I didn't install any other dependencies.I then looked at the
package.json
ofinertia-react
and see that neither ofreact
orreact-dom
are in the dependencies. Onlyreact
is in the peer deps.I am therefore wondering what the requirements are for setting up a new project?
Should I install both
react
andreact-dom
in my ownpackage.json
, even though I get adeduped
forreact
?If so, how come this is not mentioned in the documentation?
Did I miss something?
Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions