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

Not supporting new react-native version which depend on Babel 7 #1130

Closed
ManikantaAdimulam opened this issue Sep 4, 2018 · 3 comments
Closed

Comments

@ManikantaAdimulam
Copy link

Its giving error that, You need to use babel 7 but continuing with 6.26.3. Please check for computable babel-core version

@ManikantaAdimulam
Copy link
Author

Error: Plugin 0 specified in "$(ROOTDIR)/node_modules/babel-preset-react-native/index.js" provided an invalid property of "default"

@flauwekeul
Copy link

flauwekeul commented Sep 8, 2018

I have the same issue. My project uses the latest documention.js version (currently 8.1.2) and since I've upgraded babel to v7 running documentation readme src --section API throws the following error:

{ Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel. while parsing file: /Users/abbe/Projects/honeycomb/src/honeycomb.js
    at throwVersionError (/Users/abbe/Projects/honeycomb/node_modules/@babel/helper-plugin-utils/lib/index.js:65:11)
    at Object.assertVersion (/Users/abbe/Projects/honeycomb/node_modules/@babel/helper-plugin-utils/lib/index.js:13:11)
    at _default (/Users/abbe/Projects/honeycomb/node_modules/@babel/plugin-proposal-object-rest-spread/lib/index.js:41:7)
    at /Users/abbe/Projects/honeycomb/node_modules/@babel/helper-plugin-utils/lib/index.js:19:12
    at Function.memoisePluginContainer (/Users/abbe/Projects/honeycomb/node_modules/babel-core/lib/transformation/file/options/option-manager.js:113:13)
    at Function.normalisePlugin (/Users/abbe/Projects/honeycomb/node_modules/babel-core/lib/transformation/file/options/option-manager.js:146:32)
    at /Users/abbe/Projects/honeycomb/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
    at Array.map (<anonymous>)
    at Function.normalisePlugins (/Users/abbe/Projects/honeycomb/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
    at OptionManager.mergeOptions (/Users/abbe/Projects/honeycomb/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
    at OptionManager.init (/Users/abbe/Projects/honeycomb/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/Users/abbe/Projects/honeycomb/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File (/Users/abbe/Projects/honeycomb/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at Pipeline.transform (/Users/abbe/Projects/honeycomb/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at Babelify._flush (/Users/abbe/Projects/honeycomb/node_modules/babelify/index.js:26:24)
    at Babelify.prefinish (_stream_transform.js:137:10)
    at emitNone (events.js:106:13)
    at Babelify.emit (events.js:208:7)
    at prefinish (_stream_writable.js:593:14)
    at finishMaybe (_stream_writable.js:601:5)
    at endWritable (_stream_writable.js:612:3)
    at Babelify.Writable.end (_stream_writable.js:563:5)
    at DestroyableTransform.onend (/Users/abbe/Projects/honeycomb/node_modules/readable-stream/lib/_stream_readable.js:577:10)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
  code: 'BABEL_VERSION_UNSUPPORTED',
  version: '6.26.3',
  range: '^7.0.0-0',
  filename: '/Users/abbe/Projects/honeycomb/src/honeycomb.js' }

The babelify dependency seems to be the cause which documentation.js is using.

#1133 should fix the problem.

@tmcw
Copy link
Member

tmcw commented Sep 21, 2018

Folding in with #996, the tracking issue for Babel 7 support. I've rolled 9.0.0-alpha.0, which updates documentation.js to Babel 7 - try it out and let me know (in #996) if you run into any issues!

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