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

Dependency problem during Quickstart #652

Closed
bugeats opened this issue Mar 19, 2021 · 4 comments
Closed

Dependency problem during Quickstart #652

bugeats opened this issue Mar 19, 2021 · 4 comments

Comments

@bugeats
Copy link

bugeats commented Mar 19, 2021

I just sat down to try ReasonReact for the first time. The ReasonReact homepage currently has this quickstart copy pasta:

npm install -g bs-platform
bsb -init my-react-app -theme react-hooks
cd my-react-app
npm install && npm start

However, npm install is currently failing with:

ERESOLVE unable to resolve dependency tree

While resolving: <my-new-project>@0.1.0
Found: bs-platform@9.0.2
node_modules/bs-platform
  dev bs-platform@"^9.0.2" from the root project

Could not resolve dependency:
peer bs-platform@"^7.1.1" from reason-react@0.9.1
node_modules/reason-react
  reason-react@">=0.7.1" from the root project

Which is kinda a bad look, ya know?

@bugeats
Copy link
Author

bugeats commented Mar 19, 2021

As of today, here's the deps that I could get to resolve and then boot the server:

    "dependencies": {
        "react": "^16.8.1",
        "react-dom": "^16.8.1",
        "reason-react": ">=0.7.1"
    },
    "devDependencies": {
        "bs-platform": "^7.1.1",
        "moduleserve": "^0.9.0"
    }

The key thing is that I changed bs-platform to ^7.1.1.

@stiofand
Copy link

stiofand commented Mar 26, 2021

This is not good indeed, there now appears to be several ways to theoretically get a Reason React app up, none work, what gives?

@mishaszu
Copy link

mishaszu commented Apr 4, 2021

reason-react: ^0.9.1 has the same issue. It throws an error on installation.
In my case, if I force npm install, it throws an error but completes installation and app work anyway.

@davesnx
Copy link
Member

davesnx commented Feb 10, 2023

Released a new version (0.10.0) that should fix any installation issue with latest bs-platform (v9). Let me know if you find any issues and will try to fix them.

Thanks for reporting those and sorry for the late response/fix.

@davesnx davesnx closed this as completed Feb 10, 2023
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

4 participants