question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Couldn't find preset "es2015" relative to directory

See original GitHub issue

Error message:

error: bundling failed: Error: Couldn’t find preset “es2015” relative to directory “[project directory removed for privacy]/node_modules/react-google-recaptcha”

I’ve tried npm install babel-preset-es2015 --save but to no avail. I’m attempting to use this code in a React Native application. the problem occurs when I import with import ReCAPTCHA from 'react-google-recaptcha';

I haven’t gotten to the point of trying to use what i’ve imported

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Losapiojcommented, Oct 2, 2018

@dozoisch confirmed fixed!

1reaction
dozoischcommented, Sep 27, 2018

@hartzis yeah I’ll do that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Couldn't find preset "es2015" relative to directory "/Users ...
To fix this issue You should remove .babelrc (hidden) file from "/Users/username" directory.
Read more >
Couldn't find preset "es2015" relative to directory #93 - GitHub
I use gulp-babel in electron,I have all the dependencies installed. the code is : function compileJs(cb) { gulp.src(paths.src.js) ...
Read more >
【Bug】Vue解决Couldn't find preset "es2015" relative to ...
Couldn't find preset “es2015” relative to directory原因由于引入的Element-UI 使用了ES标准,所以编译会报错。解决方法安装ES 标准npm install ...
Read more >
Couldn't find preset "es2015" relative to directory-Reactjs
Coding example for the question Webpack + Babel: Couldn't find preset "es2015" relative to directory-Reactjs.
Read more >
Error: Couldn't find preset “es2015” relative to directory “/Users ...
I have the es2015 preset installed globally and locally so can't see why this would be an issue. Below is my gulp set...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found