[0.46] ReferenceError: Unknown plugin "transform-runtime"
See original GitHub issueIs 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 init
yarn
react-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
Issue Analytics
- State:
- Created 6 years ago
- Reactions:44
- Comments:35 (3 by maintainers)
Top Results From Across the Web
React native fresh install ReferenceError: Unknown plugin ...
Unknown plugin "transform-runtime" specified in "<myprojectdir>/node_modules/regenerator-transform/package.json" at 0, attempted to resolve ...
Read more >Module build failed: ReferenceError: Unknown plugin &quo
... package in my localhost using this command npm run dev but I'm facing this issue Module build failed: ReferenceError: Unknown plugin transform-runtime...
Read more >ReferenceError: Unknown plugin "transform-runtime"
Hey all, I am looking for help with my dev build. I am able to build and run my app from the installation...
Read more >搭建webpack3+版本时出现的问题汇总- liumcb - 博客园
Module build failed: ReferenceError: Unknown plugin "import" specified in "base" at 0, attempted to resolve relative to ...
Read more >babel/plugin-transform-runtime
A plugin that enables the re-use of Babel's injected helper code to save on codesize.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Doing this :
rm -rf .babelrc
solves the issue temporarily
Manual
react-native start
works for me too after building everything else, as a workaround.But the usual and complete
react-native run-ios
workflow is busted and still need fixing, obviously. The other workarounds posted previously (with .babelrc and such) doesn’t work for me.