“It works fine locally” is something that we hear a lot.
However, deploying to a Cloud provider differs greatly from your local environment so it’s not a particularly useful comparison.
“Module not found” is the error you need to fix here, the error shows ../store/todo so that’s the reference to the import in your code - is that actually correct?
The key to this specific error you are experiencing here is that our servers run Linux, and Linux is a case-sensitive file system.
Hi John, I recognized that so I continually check my files, folders, and so on. However, I have a question about can I use react-redux in my app and can render deploy that? I found out that render does not understand “axios.get(/api/todos)”
import {createStore, applyMiddleware, combineReducers} from 'redux'
import {createLogger} from 'redux-logger'
import thunk from 'redux-thunk'
import todos from './todos'
const reducer = combineReducers({
todos
})
const store = createStore(reducer, applyMiddleware(thunk, createLogger({collapsed:true})))
export default store