imports failing inside reducer and store
See original GitHub issueI am trying to use as the boilerplate https://github.com/wellyshen/react-cool-starter but on running build:production I get a weird export warning and error with no imports working. Weirdly though other packages seem to be working just fine WARNING in ./src/redux/store.js 26:83-101 "export ‘reactReduxFirebase’ was not found in ‘react-redux-firebase’ at HarmonyImportSpecifierDependency.getWarnings (C:\Users\gemini\Desktop\rea ct-cool-starter-master\node_modules\webpack\lib\dependencies\HarmonyImportSpecif ierDependency.js:46:15) at Compilation.reportDependencyErrorsAndWarnings (C:\Users\gemini\Desktop\re act-cool-starter-master\node_modules\webpack\lib\Compilation.js:663:24) at Compilation.finish (C:\Users\gemini\Desktop\react-cool-starter-master\nod e_modules\webpack\lib\Compilation.js:526:9) at C:\Users\gemini\Desktop\react-cool-starter-master\node_modules\webpack\li b\Compiler.js:472:16 at C:\Users\gemini\Desktop\react-cool-starter-master\node_modules\tapable\li b\Tapable.js:225:11 at C:\Users\gemini\Desktop\react-cool-starter-master\node_modules\webpack\li b\Compilation.js:472:11 at C:\Users\gemini\Desktop\react-cool-starter-master\node_modules\webpack\li b\Compilation.js:443:13 at nextTickCallbackWith0Args (node.js:420:9) at process._tickCallback (node.js:349:13)
WARNING in ./src/redux/reducers.js 31:14-34 "export ‘firebaseStateReducer’ was not found in ‘react-redux-firebase’ at HarmonyImportSpecifierDependency.getWarnings (C:\Users\gemini\Desktop\rea ct-cool-starter-master\node_modules\webpack\lib\dependencies\HarmonyImportSpecif ierDependency.js:46:15) at Compilation.reportDependencyErrorsAndWarnings (C:\Users\gemini\Desktop\re act-cool-starter-master\node_modules\webpack\lib\Compilation.js:663:24) at Compilation.finish (C:\Users\gemini\Desktop\react-cool-starter-master\nod e_modules\webpack\lib\Compilation.js:526:9) at C:\Users\gemini\Desktop\react-cool-starter-master\node_modules\webpack\li b\Compiler.js:472:16 at C:\Users\gemini\Desktop\react-cool-starter-master\node_modules\tapable\li b\Tapable.js:225:11 at C:\Users\gemini\Desktop\react-cool-starter-master\node_modules\webpack\li b\Compilation.js:472:11 at C:\Users\gemini\Desktop\react-cool-starter-master\node_modules\webpack\li b\Compilation.js:443:13 at nextTickCallbackWith0Args (node.js:420:9) at process._tickCallback (node.js:349:13)
ERROR in ./~/react-redux-firebase/src/connect.js Module parse failed: C:\Users\gemini\Desktop\react-cool-starter-master\node_modu les\react-redux-firebase\src\connect.js Unexpected token (43:24) You may need an appropriate loader to handle this file type. | } | | static contextTypes = { | store: PropTypes.object.isRequired | }; @ ./~/react-redux-firebase/src/index.js 1:0-31 @ ./src/redux/store.js @ ./src/client.js
ERROR in ./~/react-redux-firebase/src/helpers.js Module parse failed: C:\Users\gemini\Desktop\react-cool-starter-master\node_modu les\react-redux-firebase\src\helpers.js Unexpected token (242:10) You may need an appropriate loader to handle this file type. | if (dataToJS(data, path)[p.child]) { | return { | …dataToJS(data, path), | [p.child]: buildChildList(data, dataToJS(data, path)[p.child], p) | } @ ./~/react-redux-firebase/src/index.js 5:0-36 @ ./src/redux/store.js @ ./src/client.js
ERROR in ./~/react-redux-firebase/src/actions/auth.js Module parse failed: C:\Users\gemini\Desktop\react-cool-starter-master\node_modu les\react-redux-firebase\src\actions\auth.js Unexpected token (253:12) You may need an appropriate loader to handle this file type. | firebase, | { uid }, | { …extraJWTData, uid } | ) | } @ ./~/react-redux-firebase/src/actions/index.js 1:0-37 @ ./~/react-redux-firebase/src/compose.js @ ./~/react-redux-firebase/src/index.js @ ./src/redux/store.js @ ./src/client.js
ERROR in main.5e6876c477fe44fd6224.js from UglifyJs SyntaxError: Unexpected character ‘`’ [main.5e6876c477fe44fd6224.js:17271,9]
Please let me know what should be done
Thanks
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (9 by maintainers)
Top GitHub Comments
@biomorgoth This flag has already been added on the
v1.3.0-alpha
branch which will be released soon. This was part of getting it to work correctly with webpack 2.x.Your welcome.
Just to clarify, I mean
v1.3.*
or coming versions ofreact-redux-firebase
, not Webpack.