redux-pack: Couldn't find preset "airbnb"
I don’t use babel-preset-airbnb
in my current project.
Seem your dependencies deline
required airbnb
preset.
Hum…
I got this error.
I don’t know where should i raise issue (this one or deline one)?
I resolve this issue by:
- yarn add --dev babel-preset-airbnb (or npm install --save-dev babel-preset-airbnb)
- add
airbnb
to presets array in.babelrc
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 26 (1 by maintainers)
The root cause is that the RNP incorrectly transpiles code inside node_modules, by design.
Actually, I was able to fix this issue by simply removing the .babelrc file from
deline
. I was removing babelrc from redux-pack but deline is the broken dependency that couldn’t run on RN.Resolved!
So, I had a similar error, except it was on the
react-native
package (I’m not building a react-native app):Fixed by installing installing
babel-preset-react-native
Now I’m on this issue and fixed it by installing and enabled
babel-preset-airbnb
and that fixed all the compile issues I was having.I’m guessing issue is being caused by
.babelrc
- https://github.com/lelandrichardson/redux-pack/blob/master/.babelrc