Skip to content

React recipes broken on try.ps.ai #284

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

Closed
pete-murphy opened this issue Jul 18, 2021 · 3 comments
Closed

React recipes broken on try.ps.ai #284

pete-murphy opened this issue Jul 18, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@pete-murphy
Copy link
Collaborator

Describe the bug

The try.ps.ai links to *ReactHooks recipes are broken. There was a related issue with TryPureScript that was fixed here. So it seems like the issue is just that try.ps.ai is not up-to-date with TryPureScript. I don't know how try.ps.ai is maintained; apologies if this is not the right place to open an issue.

To Reproduce

Steps to reproduce the behavior:

  1. Go to the README for this project
  2. Click on any try link for a *ReactHooks recipe (such as HelloReactHooks: https://try.ps.ai/?github=JordanMartinez/purescript-cookbook/master/recipes/HelloReactHooks/src/Main.purs)
  3. Open browser console
  4. See error Uncaught TypeError: React.forwardRef is not a function

Expected behavior

Would expect the same behavior as loading the same source code in try.purescript.org editor.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment:

  • OS: [e.g. iOS]
  • Browser (if applicable): Chrome & Firefox
  • Node Version:
  • Spago Version:
  • PureScript Version:

Additional context

Add any other context about the problem here.

@pete-murphy pete-murphy added the bug Something isn't working label Jul 18, 2021
@milesfrain
Copy link
Collaborator

I don't know how try.ps.ai is maintained

It's currently hosted from this branch: https://github.com/milesfrain/tps/tree/demo-fixes

I just made a quick edit to incorporate your fix, so the react recipes should be working now.

Longer-term, we should migrate back to the official https://try.purescript.org. Todo items for cookbook compatibility are:

@thomashoneyman
Copy link

@milesfrain I would really like to curate a collection of issues on the Try PureScript issue tracker and organize some kind of hackathon to bring it up to feature parity with the work you’ve done on try.ps.ai. I’m able to review incoming pull requests and get them merged so long as they’re manageable sizes.

@pete-murphy
Copy link
Collaborator Author

I just made a quick edit to incorporate your fix, so the react recipes should be working now.

Yes that looks to have fixed it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants