You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
I'm trying the master branch of the project directly from github to work around #139. When I run jest I get Couldn't find preset "airbnb" relative to directory "/path/to/project/node_modules/react-native-mock".
Should this dependency be in dependencies instead of devDependencies so that it gets installed when react-native-mock is installed via npm/yarn? Why does this even fail at runtime? Shouldn't all babel-related stuff be done with after build?
The text was updated successfully, but these errors were encountered:
sdeleon28
changed the title
Should babel-preset-airbnb be a in dependencies?
Should babel-preset-airbnb be in dependencies?
Oct 26, 2017
I've realized this is only a problem because I yarnd the lib directly from GitHub (because I needed to use master). Jest was diving into node_modules and transpiling modules in place. Since there was a .babelrc file in there, it tried to use it. This shouldn't happen via standard npm installs because the .babelrc is properly ignored in .npmignore.
I'm trying the master branch of the project directly from github to work around #139. When I run
jest
I getCouldn't find preset "airbnb" relative to directory "/path/to/project/node_modules/react-native-mock"
.Should this dependency be in
dependencies
instead ofdevDependencies
so that it gets installed whenreact-native-mock
is installed via npm/yarn? Why does this even fail at runtime? Shouldn't all babel-related stuff be done with after build?The text was updated successfully, but these errors were encountered: