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

[v3-alpha] the demo doesn't appear to run #3436

Closed
esistgut opened this issue Jul 21, 2019 · 4 comments
Closed

[v3-alpha] the demo doesn't appear to run #3436

esistgut opened this issue Jul 21, 2019 · 4 comments
Assignees
Labels

Comments

@esistgut
Copy link
Contributor

Looks like it is using the v3 features while keeping v2 dependencies in package.json.
Forcing the new versions results in the following error:
Unhandled Rejection (Error): Invariant failed: You should not use <Switch> outside a <Router> on src/App.js:45

  42 |         process.env.REACT_APP_DATA_PROVIDER
  43 |     );
  44 | 
> 45 |     this.setState({ dataProvider });
     | ^  46 | }
  47 | 
  48 | componentWillUnmount() {
@Kmaschta
Copy link
Contributor

Locally, you have to rebuild everytime you change the react-admin code before running the demo.

Can you check it by running make install build run-demo on your host?

@fzaninotto fzaninotto self-assigned this Jul 21, 2019
fzaninotto added a commit that referenced this issue Jul 21, 2019
@fzaninotto fzaninotto added the bug label Jul 21, 2019
@fzaninotto
Copy link
Member

The bug is real - I release 3.0.0-alpha.0 a bit too fast. #3440 should solve it.

@esistgut
Copy link
Contributor Author

The demo is now running, thank you.

@fzaninotto
Copy link
Member

Fixed by #3440

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants