The-Productive-Champion icon indicating copy to clipboard operation
The-Productive-Champion copied to clipboard

Error while running build script on Windows machine

Open andrysatko opened this issue 1 year ago • 5 comments

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

  1. npm install --save-dev cross-env
  2. Adjust build script : "build": "cross-env INLINE_RUNTIME_CHUNK=false react-app-rewired build",

andrysatko avatar Jan 04 '24 14:01 andrysatko