When you start yarn run local

in windows an error pops up due to environment variables

"MONGO_URL" is not internal or external ..

And how to run the application in windows? Does yarn have an analogue of npm cross-env?

  • if so writes, what prevents to make it so? beat in the path - Vitaly Shebanits
  • yarn get started not working? - Vitaliy Shebanits

1 answer 1

The problem is solved with the help of cross-env. It can be installed through the package manager.

And then use in front of environment variables.

 { "scripts": { "build": "cross-env NODE_ENV=production webpack --config build/webpack.config.js" } }