Can’t get initial build to work – LocalWP Dev
-
I’m using LocalWP dev environment to try out ReactPress, looks really cool! I’ve followed the steps of creating an react app in
/app/public/wp-content/reactpress/apps/[appname]
and set the slug to a new page name that’s not being used.Checked the package.json file and when I hit
yarn build
it’s runningPUBLIC_URL=/wp-content/reactpress/apps/cwc/build react-scripts build
but every time I then go to the new page where it should live [app-name]/reactdemo there is nothing embedded, just a blank screen.I’ve gone to WPAdmin -> Settings -> Permalink and hit “Save Changes” but that doesn’t seem to work.
The app can be found by going to
[site_name]/wp-content/reactpress/apps/cwc/build/
it just doesn’t seem to embed into the theme itself.At a bit of a loss here, really like the plugin as it solves a lot of problems I’m facing at the moment so really keen to get it up and running.
From what I can see from other posts it looks sounds like my initial build isn’t working as when I run yarn build I don’t see the page for the first time but I’m not too sure how to go about diagnosing
UPDATE: Debugging through
class-reactpress-public.php
I’m seeing that$request = @file_get_contents($manifest_url);
at line 155 is failing so it causingrepr_load_react_app:122
function to return false. Any ideas?
- The topic ‘Can’t get initial build to work – LocalWP Dev’ is closed to new replies.