Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'readFile' of undefined #1

Open
Gadsha opened this issue Jul 1, 2019 · 2 comments
Open

Cannot read property 'readFile' of undefined #1

Gadsha opened this issue Jul 1, 2019 · 2 comments

Comments

@Gadsha
Copy link

Gadsha commented Jul 1, 2019

Hi,
I'm using react-native-jetifier, installation goes ok, but after "npx react-native-jetifier" I get this error:
Cannot read property 'readFile' of undefined

I have these packages installed:
@babel/cli : 7.4.4
@babel/runtime : 7.4.5
fast-glob : 3.0.3

should I install all the Dev Dependencies listed in npmjs.com under Dependencies ?!?

@mgtitimoli
Copy link
Contributor

Hi @Gadsha,

Thanks for having taken the time to report this.

The issue you are experiencing is triggered by the use of a node version less than 10.16.0. Could you please update to LTS or Current and check if this still happens with them?

@sandeepjain
Copy link

@Gadsha It is node version issue.

I use nvm and have setup something like this in postinstall.

nvm use 10 && npx react-native-jetifier && nvm use <Node version you are using>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants