Yarn Build not recognizing ‘PUBLIC_URL’
-
So, I have finished installing ReactPress, created a unique URL Slug, and went to run yarn build and got the following error:
$ yarn build yarn run v1.22.18 $ PUBLIC_URL=/wp-content/reactpress/apps/search/build react-scripts build 'PUBLIC_URL' is not recognized as an internal or external command, operable program or batch file. error Command failed with exit code 1.
I also tried running npm run build and got a very simliar error
'PUBLIC_URL' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: <code>PUBLIC_URL=/wp-content/reactpress/apps/search/build react-scripts build</code> npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Any suggestions?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Yarn Build not recognizing ‘PUBLIC_URL’’ is closed to new replies.