Closed jlucfarias closed 5 years ago
Hi @John-Luke , I'm creating a new theme as I type this to check this out.
But the first thing that comes to mind is: did you complete the PHP portion of the setup?
Hi @John-Luke,
Yes I get this exact same error if I run yarn build
without completing the PHP portion of the setup. Thanks for pointing this out.
I'll improve the script to at least print a nicer error.... or maybe I'll run yarn start
for you when all configs are missing.
I actually already had code to do this check, but it wasn't executing soon enough in the process.
Fixed now in @devloco/react-scripts-wptheme
version 3.0.1-wptheme-3.0.5
.
Hi, i created a theme with
npx create-react-wptheme testetheme
but i can't even build. I'm using the latest versionThe response when i run
yarn build
isTypeError: Cannot read property 'homepage' of null at module.exports (C:\Users\lucas\Documents\testetheme\node_modules\@devloco\react-scripts-wptheme\config\webpack.config.wptheme.js:77:25)
testetheme.zip