react-redux-firebase: TransformError: ..../lib/index.js: Cannot set property '' of undefined
I am trying to use react-redux-firebase
with my react-native
project. I have added react-redux-firebase@canary
which resolved to 2.0.0-alpha.3
When I run the app I get:
error: bundling: TypeError: Cannot set property '' of undefined
at Promise$2 (/Users/burak/project/node_modules/es6-promise/dist/lib/es6-promise/promise.js:129:19)
at Function.memoisePluginContainer (/Users/burak/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:113:13)
at Function.normalisePlugin (/Users/burak/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:146:32)
at /Users/burak/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
at Array.map (native)
at Function.normalisePlugins (/Users/burak/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/Users/burak/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at OptionManager.init (/Users/burak/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/Users/burak/project/node_modules/babel-core/lib/transformation/file/index.js:212:65)
TransformError: /Users/burak/project/node_modules/react-redux-firebase/lib/index.js: Cannot set property '' of undefined
I tried to debug the issue. Currently, I only have one import statement below and I am not even calling any method and I get the same error above.
import { firebaseStateReducer } from 'react-redux-firebase';
Am I missing something?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (9 by maintainers)
Commits related to this issue
- Version 2.0.0 Alpha 5 * es6-promise removed from babel plugins and dependencies (attempt to fix #175) * stage-1 removed from babel-presets and dependencies — committed to prescottprue/react-redux-firebase by deleted user 7 years ago
- Version 2.0.0 Alpha 5 (#178) * [`babel-plugin-es6-promise`](https://www.npmjs.com/package/babel-plugin-es6-promise) removed from `.babelrc` and dependencies (attempt to fix #175) * [`babel-preset-s... — committed to prescottprue/react-redux-firebase by prescottprue 7 years ago
- Version v2.0.0 Alpha 6 (#180) * `.babelrc` added to `.npmignore` (attempt to fix #175 and #176) * unpkg field added to package file * Switched to `transform-es2015-modules-commonjs` from `add-modul... — committed to prescottprue/react-redux-firebase by prescottprue 7 years ago
@projoneftw and @buraks I released
v2.0.0-alpha.5
which removes usage ofes6-promise
all together.It may not be to blame, but since
es6-promise
was part of the initial error report, I figured it was worth a try.Still trying to reproduce this error myself to confirm. If either of you get a chance to try it out, let me know. It would be great get this fixed ASAP.
Just tried
2.0.0-alpha.2
it’s the same