Repository navigation
Closed
Labels
Resolution: LockedThis issue was locked by the bot.
Description
Is this a bug report?
Yes
Have you read the Bugs section of the Contributing to React Native Guide?
Yes
Environment
react-native -v: react-native-cli: 2.0.1 react-native: 0.46.0node -v: v7.6.0npm -v: 5.0.3yarn --version(if you use Yarn): 0.24.6
Then, specify:
- Target Platform (e.g. iOS, Android): iOS
- Development Operating System (e.g. macOS Sierra, Windows 10): macOS
- Build tools (Xcode or Android Studio version, iOS or Android SDK version, if relevant):
Steps to Reproduce
(Write your steps here:)
react-native inityarnreact-native run-ios
Expected Behavior
Open iOS simulator with the hello world app
Actual Behavior
Packager fails
/Users/xx/test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:328
throw e;
^
ReferenceError: Unknown plugin "transform-runtime" specified in "/Users/xx/test/node_modules/regenerator-transform/package.json" at 0, attempted to resolve relative to "/Users/xx/test/node_modules/regenerator-transform" (While processing preset: "/Users/xx/test/node_modules/babel-preset-react-native/index.js")
at /Users/xx/test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
at Array.map (native)
at Function.normalisePlugins (/Users/xx/test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/Users/xx/test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at OptionManager.init (/Users/xx/test/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at compile (/Users/xx/test/node_modules/babel-register/lib/node.js:103:45)
at loader (/Users/xx/test/node_modules/babel-register/lib/node.js:144:14)
at Object.require.extensions.(anonymous function) [as .js] (/Users/xx/test/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
Process terminated. Press <enter> to close the window
Reproducible Demo
init a new project
Reacted by Angel Salazar, Bennett Kolasinski, Ho Yin (Michael) Cheng, Dan Lilienblum, Javier Morant, Tim Jünemann, oney, Frangeris Peguero, Maximilian Hemmrich, Ward and 34 more
Metadata
Metadata
Assignees
Labels
Resolution: LockedThis issue was locked by the bot.
Activity
[-]ReferenceError: Unknown plugin "transform-runtime"[/-][+][0.46] ReferenceError: Unknown plugin "transform-runtime"[/+]joostslijkoort commentedon Jul 5, 2017
I have the exact same issue when running run-android, while run-ios is working fine.
The problem occurs on newly generated projects, my existing projects run fine.
mayusha commentedon Jul 5, 2017
+1
lilienblum commentedon Jul 5, 2017
Same, run-ios
ryanwhiley commentedon Jul 5, 2017
+1
fjmorant commentedon Jul 5, 2017
+1
Nismit commentedon Jul 5, 2017
I also have the same issue.
This is a temporary fix because I changed previous react-native package.json.
node_modulespackage.jsonnpm installreact-native run-iosfjmorant commentedon Jul 5, 2017
Doing this :
rm -rf .babelrcsolves the issue temporarily
chishui commentedon Jul 5, 2017
same issue here. And @JavierM84 's solution works for me.
andrezacds commentedon Jul 5, 2017
Same here!
ronal2do commentedon Jul 6, 2017
+1
0xdavinchee commentedon Jul 6, 2017
Worked for me too!
ronal2do commentedon Jul 6, 2017
@Nismit worked to mee
waseemshahwan commentedon Jul 6, 2017
+1
fungilation commentedon Jul 6, 2017
Same. Reproduced on 0.46.0, was on 0.45.1 without issue. On MacOS, running
react-native run-ios> React Packager terminal output:Tried removing .babelrc and
run-iosterminates on a different babel plugin I'm using,idx:9 remaining items
namqdam commentedon Jul 6, 2017
I change "babel-preset-react-native" back to version "2.0.0" and everything is working.
messense commentedon Jul 6, 2017
+1
JimmyDaddy commentedon Jul 6, 2017
I got this problem too.
If I delete
.babelrcI will encounter this problem #14209So I checked
regenerator-transform/package.jsonfoundbabel-cli、babel-plugin-transform-runtime、babel-preset-envhaven't installed innode_modules, so I installed them all.Then I got this guy says
Couldn't find preset "es2015" relative to directory ...blabla, so I installedbabel-preset-es2015After that I reencountered #14209. T_T
tomislavHonig commentedon Jul 6, 2017
Can someone who has working version of react native 0.46 project paste a package.json file?
dioxide commentedon Jul 6, 2017
+1
namqdam commentedon Jul 6, 2017
my working package for react native 0.46.0
https://gist.github.com/namdq1969/f82b7ac8157b2db8f6bdf5e19463d8e7
grabbou commentedon Jul 6, 2017
Duplicate of #14530
fungilation commentedon Jul 6, 2017
@tomislavHonig @grabbou my package.json:
.babelrc:
gonglong commentedon Jul 7, 2017
@JavierM84 thanks it works for me on RN 0.46
SoundBlaster commentedon Jul 7, 2017
No need to delete Babel config - it's important part of the app. Restarting the Terminal and calling the
react-native startcommand help me.teaualune commentedon Jul 10, 2017
I managed to solve the issue temporarily without removing
.babelrcbymetro-bundler@0.7.8rm -rf node_modules/react-native/node_modules/metro-bundler#14530 has more details on this
fungilation commentedon Jul 10, 2017
No need for manual install or deletes. With yarn, all you need is
yarn upgrade. #14530 (comment)