inertia icon indicating copy to clipboard operation
inertia copied to clipboard

NPM fails to install with React version ^18.0.0

Open mindrage opened this issue 3 years ago • 2 comments

Versions:

  • @inertiajs/inertia version: 0.11.0
  • @inertiajs/inertia-react version: 0.8.0

Describe the problem:

npm fails to install inertia.js with react version ^18.0

Steps to reproduce:

in dependencies:

    "dependencies": {
        "@inertiajs/inertia": "^0.11.0",
        "@inertiajs/inertia-react": "^0.8.0",
        "@types/react": "^18.0.9",
        "react": "^18.0.0",
        "react-dom": "^18.0.0"
    }

Then try to run npm install

Solution is probobally to add, within inertia-js/intertia-react/package.json, || ^18.0.0 for the react version.

mindrage avatar May 27 '22 07:05 mindrage

Possible similar issue https://github.com/inertiajs/inertia/issues/1152 and related PR https://github.com/inertiajs/inertia/pull/1159

SuperDJ avatar May 27 '22 19:05 SuperDJ

I have the same problem. We are waiting for the release of inertia-react which will solve it.

TomKalina avatar Aug 02 '22 08:08 TomKalina

Hey! Thanks so much for your interest in Inertia.js and for sharing this issue/suggestion.

In an attempt to get on top of the issues and pull requests on this project I am going through all the older issues and PRs and closing them, as there's a decent chance that they have since been resolved or are simply not relevant any longer. My hope is that with a "clean slate" me and the other project maintainers will be able to better keep on top of issues and PRs moving forward.

Of course there's a chance that this issue is still relevant, and if that's the case feel free to simply submit a new issue. The only thing I ask is that you please include a super minimal reproduction of the issue as a Git repo. This makes it much easier for us to reproduce things on our end and ultimately fix it.

Really not trying to be dismissive here, I just need to find a way to get this project back into a state that I am able to maintain it. Hope that makes sense! ❤️

reinink avatar Jul 28 '23 01:07 reinink