Closed paunovic-stefan closed 4 years ago
I have same issue, please help
the problem was that the script is for Linux and Mac OSX... on windows the script needs to be modified to: set MESSAGE_DIR='./src/translations/extractedMessages'&& react-scripts build
or even better install cross-env npm module and modify the script to:
cross-env MESSAGE_DIR='./src/translations/extractedMessages' react-scripts build
to be able to run on any OS
I have to use set MESSAGE_DIR=./src/i18n/extractedMessages&&react-scripts build on Windows.
I'm trying to use this in a react application created with CreateReactApplication
when running
npm run extract
i get the following error message'MESSAGE_DIR' is not recognized as an internal or external command
package.json script is as follows