-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[0.46] Packager fails: Unknown plugin "transform-runtime" #14530
Comments
I've got the exact same problem after upgrading to 0.46.0-rc.2, @sjmueller have you managed to sort that out? |
Ok |
I haven't been able to sort it out yet. Tried a bunch of different things, but reverted and now stuck on |
Why don't you just delete the |
@SudoPlz because I'm using However just to check, I did try deleting my
So gracious for what react-native and the core team, but honestly the amount of instability over the past few releases is pretty staggering -- 0.44.2+, 0.45+, and 0.46 rc all have their own set of problems. We really need the bug fixes in |
Just to put more context here: Looks that the problem is Packager trying to transpile Another explanation of similar issue from another repository: redux-orm/redux-orm#24 (comment) |
Currently getting this error as well...
on version |
Also getting this error in Update: |
@joriswa I just tried this and it works. Any insight as to why that fixed the issue or if that fix will cause any other issues down the road? |
@nprz I got no idea whatsoever. |
Also got this error after upgrading from 0.45 to 0.46 I resolved it by deleting Then running |
Dong this @SudoPlz Would really appreciate if you could enlighten me as to why this solves the problem? @nprz |
I deleted |
As a quick workaround, you can use haul which works just fine. |
delete |
The same issue here, wanted to start a new project :( |
I found a solution. This is due to what I think is a kinda-bug in Babel, but I have a workaround anyway. Sending a PR soon. |
@thechee514 try resetting the packager cache |
@cmdshepard it returns this error: Could this be because I have yarnpkg installed? So instead of entering: npm install --save redux react-redux I should enter yarn add redux? |
@thechee514 what version of react-native are you using? |
@cmdshepard 0.46 |
@thechee514 try |
downgrade babel-preset-react-native 2.1.0 to 2.0.0 is working fine in my case. |
@cmdshepard I'm still getting the same error, here is the output after attempting to install redux: |
@thechee514 You're using react-native 0.45.1 - On this version, the packager is located in a different directory. Try running |
@cmdshepard, I'm getting a slightly different error now: ./node_modules/react-native/packager/react-native-xcode.sh must be invoked by Xcode. I was running the code you posted earlier on 0.46. I just downgraded to 0.45.1 cause I kinda gave up on 0.46 for the meantime. But doesn't yarn add redux do the same thing? |
@thechee514 yes. |
Okay, I initialized the project with react-native init project, but I think it just uses yarn. Thanks for the help though @cmdshepard! |
I don't know why Facebook releases RN with bug which is so obvious. User reported this issue in rc and the bug still exists in the stable release. User even couldn't run a |
So, the original problem "Unknown plugin "transform-runtime"" should now be fixed for v0.46 if you do a clean set-up, or if you upgrade the Creating a project from scratch with v0.46 worked for me, and the simulator loads the app correctly. For the other problems that may still happen, please open new issues :) |
@jp928 Facebook doesn't manage open source releases for react-native, and we are probably not as actively involved as we should be. There are probably ways we can get better at this, but if this is a huge problem for you, it would be awesome if you could step up and help us avoid this class of problems in the future by helping us straighten out the release cycle. |
@jp928 I am really sorry for the inconvenience. The "RC" bug report somewhat got lost in my inbox full of notifications. During manual testing that I usually do (as well as testing on the CI) the bug wasn't revealed. Sometimes not every single issue can be reproduced, but I think we did our best to fix it as soon as possible post the release. |
So is a minor release fix coming? I'm working around with a manual A side question is this: does this affect production releases of my own RN app, which wouldn't be tied to a running instance of the packager? Repasting from the other issue, my package.json:
.babelrc:
|
0.46.1 is coming with a fix for different issue. Fix for this issue was
released to metro-bundler package directly. Metro-bundler is React Native
dependency "^0.7.6" meaning that you will get latest patch version every
time you do a fresh install. Since they released 0.7.8 with a fix, no React
Native update is required.
…On Fri, 7 Jul 2017 at 18:58 Gary F ***@***.***> wrote:
So is a minor release fix coming? I'm working around with a manual react-native
start, as run-ios result in the babel related packager errors. Other
workarounds haven't worked for me on getting run-ios to work.
A side question is this: does this affect production releases, which
wouldn't be tied to a running instance of the packager?
Repasting from the other issue, my package.json:
{
"name": "<name>",
"version": "0.0.1",
"private": true,
"eslintConfig": {
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"browser": true,
"node": true
},
"plugins": [
"react",
"react-native"
],
"rules": {
"comma-dangle": [
2,
"always-multiline"
],
"semi": [
2,
"never"
],
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2
}
},
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"babel-plugin-idx": "^1.1.0",
"bugsnag-react-native": "^2.2.3",
"he": "^1.1.0",
"lodash": "^4.17.2",
"moment-timezone": "^0.5.10",
"node-summary": "file:../node-summary/",
"react": "16.0.0-alpha.12",
"react-native": "0.46.0",
"react-native-blur": "^3.1",
"react-native-code-push": "3.0.1-beta",
"react-native-firebase-analytics": "^3.0.0",
"react-native-fit-image": "^1.4.8",
"react-native-highlight-words": "^1.0.0",
"react-native-keep-awake": "^2.0.4",
"react-native-linear-gradient": "^2.0.0",
"react-native-modalbox": "^1.3.8",
"react-native-notification": "^2.0.0",
"react-native-orientation": "file:../react-native-orientation-RN0.40/",
"react-native-parallax-scroll-view": "^0.19.0",
"react-native-safari-view": "^2.0.0",
"react-native-status-bar-size": "^0.3.2",
"react-native-swiper": "^1.5.4",
"react-native-tooltip": "^5.0.0",
"react-native-tts": "^1.3.0",
"react-native-vector-icons": "^4.1.1",
"react-native-webview-bridge": "file:../react-native-webview-bridge-RN0.40/",
"react-redux": "^5.0.1",
"realm": "^1.3.1",
"redux": "^3.6.0",
"redux-thunk": "^2.1.0"
},
"devDependencies": {
"redux-logger": "^3.0.6"
}
}
.babelrc:
{
"presets": ["react-native"],
"plugins": ["idx"]
}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#14530 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWcxv389Y11Am5kDH9bEwivUW-bylj0ks5sLmPLgaJpZM4N65Yi>
.
|
Can you clarify on "you will get latest patch version every time you do a fresh install"? Does it include running a |
I believe not. The action necessary depends on what package manager you use. For |
I confirm fixed with A side issue I noticed now on React Packager's terminal below. Does this warrant a new issue?
|
I believe it's the issue reported in facebook/metro#18. We have a fix that's been landed, not sure when will it spread to |
That's fine, shouldn't be a blocker as it's just a console warning. |
Going to close it as it looks like the issue has been resolved :) |
Create a fresh app with:
react-native init rn46 --version "0.46.0-rc.2"
, thenCMD+R
in Xcode which attempts to fire up the packager, but immediately bombs with:Since it's a reference error, I add the dependency
npm i babel-plugin-transform-runtime --save-dev
and rerun, which now bombs with:Okay, let's now try
npm i --save-dev babel-preset-env
, which bombs with:Something has definitely gone wrong down this rabbit hole. I noticed that @davidaurelio just upgraded
babel-preset-react-native
with commit bc22a4d, not sure if it's related but the update is already showing up in the initialized package.json:The text was updated successfully, but these errors were encountered: