redux-react-session icon indicating copy to clipboard operation
redux-react-session copied to clipboard

bundling failed: ReferenceError: [BABEL]

Open shasharma opened this issue 7 years ago • 0 comments

error: bundling failed: ReferenceError: [BABEL] .../node_modules/redux-react-session/dist/index.js: Unknown option: .../node_modules/react/index.js.Children. Check out http://babeljs.io/docs/usage/options/ for more information about options.

A common cause of this error is the presence of a configuration options object without the corresponding preset name. Example:

Invalid:
  `{ presets: [{option: value}] }`
Valid:
  `{ presets: [['presetName', {option: value}]] }`

For more detailed information on preset configuration, please see https://babeljs.io/docs/en/plugins#pluginpresets-options. (While processing preset: ".../node_modules/react/index.js")
    at Logger.error (.../node_modules/babel-core/lib/transformation/file/logger.js:41:11)
    at OptionManager.mergeOptions (.../node_modules/babel-core/lib/transformation/file/options/option-manager.js:226:20)
    at .../node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14
    at .../node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22
    at Array.map (<anonymous>)
    at OptionManager.resolvePresets (.../node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
    at OptionManager.mergePresets (.../node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
    at OptionManager.mergeOptions (.../node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
    at OptionManager.init (.../node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)

Is something wrong with babel versions for devDependencies?

shasharma avatar Aug 06 '18 16:08 shasharma