Skip to content
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

TypeError: Cannot read property 'injection' of undefined #1

Open
shravanteegala opened this issue Jan 19, 2019 · 1 comment
Open

TypeError: Cannot read property 'injection' of undefined #1

shravanteegala opened this issue Jan 19, 2019 · 1 comment

Comments

@shravanteegala
Copy link

I am getting this error.

TypeError: Cannot read property 'injection' of undefined
./node_modules/react-native-web/dist/exports/createElement/index.js
node_modules/react-native-web/dist/exports/createElement/index.js:20

@MuhammadUzair
Copy link

Fixed this issue by update react-native-web version 0.8.5 to 0.9.3 in Package.json and npm i or yarn install.
After this I face redux issue and fixed redux issue by update store.js.
Updated store.js code :

import { createStore, applyMiddleware ,compose } from 'redux'
import reducer from '../reducers'
import createSagaMiddleware from 'redux-saga'
import root from '../sagas/index'

const sagaMiddleware = createSagaMiddleware()
const middleware = applyMiddleware(sagaMiddleware)

const composeEnhancer = window.REDUX_DEVTOOLS_EXTENSION_COMPOSE || compose;
const store = createStore(
reducer,
composeEnhancer(middleware),

)

sagaMiddleware.run(root)

export default store

window.store = store

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants