In windows when I tried to build react app I am getting error saying 'GENERATE_SOURCEMAP' is not recognized as an internal or external command.

I have added below line in my package.json file

"build": "GENERATE_SOURCEMAP=false react-scripts build"

1 answer

  • answered 2019-07-18 16:03 Tony Ngo

    MAybe some thing like this would help you

    npx create-react-app app
    cd app
    GENERATE_SOURCEMAP=false yarn build