-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
react native 0.57 cannot resolve module "@babel/plugin-external-helpers" #21214
Comments
ios也一样的问题 |
Workaround: npm install --save-dev @babel/plugin-external-helpers |
Fixed |
Seems related to this facebook/metro#198 |
|
@sopranolinist After installing it, what's the error shown? |
@HsuWai same error as before adding the babel plugin package: |
Ok.. If so, I think you should take a look and try like what @sunnylqm said. |
Remember to restart packager after installing any package. My link above does not provide any direct fix, just for reference. |
@sunnylqm So, is there a way to solve this problem? |
@hqwlkj |
In addition to above suggestion, I rebooted and deleted old build folder
and it worked - thanks
…On Thu, Sep 20, 2018 at 12:52 AM Sunny Luo ***@***.***> wrote:
@hqwlkj <https://github.com/hqwlkj> npm install --save-dev
@babel/plugin-external-helpers and Remember to restart packager after
installing any package.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#21214 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aor6QHGOJG_Ul2Efq9FKZafFF_sfEO6uks5uc0k_gaJpZM4WxZ8J>
.
--
---------------------------------------------------------
Ignorance is man's greatest immaturity.
Immaturity is man's greatest ignorance.
---------------------------------------------------------
--
|
@HsuWai what the @babel/plugin-external-helpers version are you install,i install 7.0.0,then show another error |
after install shown :: Cannot find module 'metro-react-native-babel-preset/src/configs/hmr' |
@git-Asir Are you upgrading to 0.57? Make sure you have followed the steps here https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md#updating-to-this-version |
The same to you |
Installing |
This is happening to me too and installing @babel/plugin-external-helpers doesn't help. I'm on a Mac. This happened with my main project, and then I created a new test project from scratch and it happened with that as well. |
@git-Asir my @babel/plugin-external-helpers version is also 7.0.0. |
We are working on a fix with Metro team. Here's explanation from the issue I've opened today: #21219 (comment) |
Fixed in facebook/metro@48fa696 |
For me it was coming because of mismatch in the versions of the dependencies. "dependencies": { |
Description
Issue can be reproduced like this:
The text was updated successfully, but these errors were encountered: