question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

imports failing inside reducer and store

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
prescottpruecommented, Feb 13, 2017

@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.

1reaction
prescottpruecommented, Feb 2, 2017

Your welcome.

Just to clarify, I mean v1.3.* or coming versions of react-redux-firebase , not Webpack.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ask Question - Stack Overflow
ERROR in ./src/redux/store.js 5:26-34 export 'reducers' (imported as 'reducers') was not found in './reducers/index' (possible exports: default).
Read more >
Redux Fundamentals, Part 4: Store
That root reducer is currently defined in src/reducer.js in our example app. Let's import that root reducer and create our first store.
Read more >
Redux for dummies. Hi meows! in this article I'll be… - Medium
A reducer is registered with redux store, redux store says in order to connect with react component, the component should pass data to...
Read more >
Writing Our First Redux Test - LearnHowToProgram.com
We'll store the imported code in a variable called ticketListReducer . ... FAIL src/__tests__/reducers/ticket-list-reducer.test.js ○ ticketListReducer ...
Read more >
Redux - Complete Intro to React v5
Redux · import { createStore, compose, applyMiddleware } from "redux"; import reducer from "./reducers"; const store = createStore( reducer, typeof window === " ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found