The-Productive-Champion
The-Productive-Champion copied to clipboard
Error while running build script on Windows machine
There is a difference in running scripts between Mac OS and Windows. Error when running yarn build
on Windows :
$ INLINE_RUNTIME_CHUNK=false react-app-rewired build
'INLINE_RUNTIME_CHUNK' is not recognized as an internal or external command,
operable program or batch file.
Possible Solution
-
npm install --save-dev cross-env
- Adjust build script :
"build": "cross-env INLINE_RUNTIME_CHUNK=false react-app-rewired build",