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

Prefetch methods don't work when using create-react-app #34

Closed
aobretin opened this issue Oct 12, 2017 · 1 comment
Closed

Prefetch methods don't work when using create-react-app #34

aobretin opened this issue Oct 12, 2017 · 1 comment

Comments

@aobretin
Copy link

When trying to integrate react-static with a project using create-react-app all prefetch methods like 'getroutes' or 'siteprops' have a busted endpoint (localhost:3000/undefined/getroutes)

@tannerlinsley
Copy link
Contributor

tannerlinsley commented Oct 12, 2017

You cannot use create-react-app to build a react-static site. react-static uses a very different build system. Please use the react-static CLI :)

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

2 participants