2

please can anyone help me? I have this package: https://github.com/xbrain-dev/xbrain-validate

When I install it in a react-native project the following error happens:

/Users/diegovieira/Sites/ConexaoClaroBrasilMobile/node_modules/xbrain-validate/dist/xbrain-validate.min.js: Couldn't find preset "@babel/preset-env" relative to directory "/Users/diegovieira/Sites/ConexaoClaroBrasilMobile/node_modules/xbrain-validate"

  • maybe you just have to install it via "npm install babel-preset-env --save" – davbuc Nov 01 '18 at 12:01
  • Possible duplicate of [Couldn't find preset "env" relative to directory](https://stackoverflow.com/questions/48848249/couldnt-find-preset-env-relative-to-directory) – davbuc Nov 01 '18 at 12:01
  • But in the xbrain-validate package the @babel/preset-env package is a dependency of dev, why should I install in the main project? – Diego R. Vieira Nov 01 '18 at 12:07

0 Answers0