devloco / create-react-wptheme

Create modern, React-enabled WordPress themes with a single command.
MIT License
359 stars 60 forks source link

Browser Refresh not working in warning state #59

Open eastcoastcoder opened 4 years ago

eastcoastcoder commented 4 years ago

This could be an issue on my end but I can't seem to get handleWarnings to fire which is breaking browser refresh in a warning state. That said I can just run my client like normal with react-scripts but I was hoping to continue running with wpstart.

Here's the block of code that catches. (Inside wpThemeClient.js)

image

michaelsoriano commented 3 years ago

I'm having a similar issue. Any luck in a solution?

eastcoastcoder commented 3 years ago

Not really, however the build command works fine with warnings. So I just use the normal react scripts start command for development and the wpscripts build command when I'm ready to publish.