-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
Why "combinReduers" can not work at my project today suddenly, which could work well yesterday? #1681
Comments
Hi! Unfortunately this is not enough information to help you. Please provide a project reproducing the issue. |
I’m closing as there is not enough information here, and it’s most likely a usage issue. Please refer to examples to see the correct usage. |
What I can give more information is I added some module by "npm" like thunk. then it got error. |
Please provide a project reproducing the issue. I can’t find a way to reproduce this, so unfortunately there is no way I could help you. |
I can not attach my zipped project about 606KB size, for error from git "Something went really wrong, and we can’t process that file. ". Is there other way I could attach my project? |
"Something went really wrong, and we can’t process that file. " when I try to attach my project code, Is there other way to attach my code? |
Please delete |
You can create a repository on GitHub and push it there rather than attach it. |
After I enter" npm publish", console response me "+ [email protected]", I think my project has been updated into github now, but I can not search it at github, don't know why. |
npm ERR! extraneous: [email protected] D:\react\react-redux-starter-kit\node_modules\inline-style-prefixer |
@caojinli : so far, it looks like you've tried to publish your repository as an NPM package, not create a repo on Github and make it available. Also, those "extraneous" warnings have nothing to do with Redux - that's NPM saying that there's a mismatch between what packages are in |
The project had been located at URL of https://github.com/caojinli/prodoc, who can get my project with error "combinReduer"? Thanks a lot. |
@markerikson I did publish my project into github yet and wish you could supply kindly help, thank you. |
When I run
This means "deploy": "better-npm-run deploy",
"flow:check": "babel-node bin/flow-check",
"codecov": "cat coverage/*/lcov.info | codecov"
,
"betterScripts": { I found the exact place of error with http://jsonlint.com/ that formats JSON. After I ran
I ran
to fix it. Finally, after running
It turned out that you have Removing In the future we would prefer that you ask questions like this on StackOverflow, not the Redux issue tracker. Redux is a very specific library, but your problems seem related to using a mix of 20 technologies that you use together without a deep understanding of how each of them works. Personally I don’t understand a lot of what’s going on in that project’s configs, so I wouldn’t use this example at the same time as learning a library like Redux. It doesn’t require any of that configuration. Copy-pasting configs from boilerplate projects always leads to hard-to-debug issues like this. It’s easy to miss somebody’s configuration decisions when you’re not the one making them. Don’t use boilerplate projects unless you understand each and every technology they use! You don’t need a boilerplate to start learning Redux. If you just want to start learning Redux, copy this HTML page and start learning! You can always look at all those other projects later when you’re more comfortable with Redux and other libraries. |
@gaearon First of all, thank you very much, I did learn much from your reply. ERROR in ./src/containers/Root.js ERROR in ./src/routes/index.js ERROR in ./src/routes/index.js ERROR in ./src/routes/index.js ERROR in ./src/routes/index.js Plus, I did rename the redux folder from my project after I read your reponse to viod what you mentioned that program will use wrong "redux" instead of real "redux". but unfortunately I still can not run it even I renamed the folder of redux. |
@gaearon I foud that the resolve.root in webpack.config.js actually refer to the redux of src, so I can not disable it. |
Yes, because you can no longer use absolute paths that are automatically resolved. This is the whole point — you should either
You can’t have both a folder named |
@gaearon I copied my business codes(including views, reduxs-reducers, components, containers and etc) to another project which could work every well, using same configration(download from github), the working very well project got same error. If I removed my business codes from it and the project worked very well again. So I dare to say it caused by my business code. nothing related to webpack config and there was a folder of redux in my src. |
If you see this exact error: rootReducer.js:6 Uncaught TypeError: (0 , _redux.combineReducers) is not a function
Head.js:66 Uncaught TypeError: (0 , _reactRedux.connect) is not a function There is no way it can be caused by your business code. This is the error caused by Of course, any other errors may have different origins. |
import { combineReducers } from 'redux'
import { routerReducer as router } from 'react-router-redux'
import counter from './modules/counter'
import docManage from './doc'
export default combineReducers({ // error happened
counter,
docManage,
router
})
Uncaught TypeError: (0 , redux.combineReducers) is not a functionObject.defineProperty.value @ rootReducer.js:6__webpack_require_ @ bootstrap 8921782a133419f3cb76:585fn @ bootstrap 8921782a133419f3cb76:109exports.esModule @ index.js:6__webpack_require @ bootstrap 8921782a133419f3cb76:585fn @ bootstrap 8921782a133419f3cb76:109(anonymous function) @ wrapActionCreators.js:6__webpack_require__ @ bootstrap 8921782a133419f3cb76:585fn @ bootstrap 8921782a133419f3cb76:109exports.esModule @ connect.js:18__webpack_require @ bootstrap 8921782a133419f3cb76:585fn @ bootstrap 8921782a133419f3cb76:109exports.esModule @ index.js:10__webpack_require @ bootstrap 8921782a133419f3cb76:585fn @ bootstrap 8921782a133419f3cb76:109(anonymous function) @ bootstrap 8921782a133419f3cb76:631__webpack_require__ @ bootstrap 8921782a133419f3cb76:585(anonymous function) @ bootstrap 8921782a133419f3cb76:631(anonymous function) @ bootstrap 8921782a133419f3cb76:631
The text was updated successfully, but these errors were encountered: