reactPress not defined
-
I’m working through the getting started tutorial and am having trouble with the “Using the REST API” step. I’m getting the error reactPress is not defined in api.js when opening the page on localhost.
I tried building and viewing the app on the Local WP server but that also fails and gives me an obscure error (since the code is minified after build).
Here is the tutorial that I’m following: https://rockiger.com/en/reactpress/reactpress-tutorial/
Do I have to import the reactPress variable somehow? It’s supposed to be global but doesn’t seem to be accessible from any .js file in src.
Any help would be appreciated!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘reactPress not defined’ is closed to new replies.