horizon icon indicating copy to clipboard operation
horizon copied to clipboard

Couldn't find preset "es2015-loose"

Open ruskid opened this issue 9 years ago • 4 comments

Fresh install of version 2. Still can't use horizon with React Native.

Error: Couldn't find preset "es2015-loose" relative to directory "/home/demin/startup/client/node_modules/@horizon/client"

at /home/demin/startup/client/node_modules/babel-core/lib/transformation/file/options/option-manager.js:321:17

Server version: 2 Client version: 2

ruskid avatar Aug 29 '16 15:08 ruskid

This could be a babel version issue, do you have babel installed globally?

deontologician avatar Aug 29 '16 21:08 deontologician

@ruskid it doesn't work unless you remove the babel config, see this comment for details on getting it up and running https://github.com/rethinkdb/horizon/issues/255#issuecomment-241173730

lirbank avatar Aug 30 '16 18:08 lirbank

Yup just disable your babel config. Trying to get this at least noted in the docs in #750...

MikeShi42 avatar Sep 01 '16 06:09 MikeShi42

Unrelated to this issue but es2015-loose has been deprecated: https://github.com/bkonkle/babel-preset-es2015-loose

jimthedev avatar Sep 07 '16 15:09 jimthedev