n6g7 / redux-saga-firebase

A redux saga integration for firebase.
https://redux-saga-firebase.js.org/
MIT License
284 stars 57 forks source link

Errors when trying Demo app #184

Open llamerr opened 5 years ago

llamerr commented 5 years ago

First problem was at yarn dev stage after installing packages

ERROR in ./redux/rsf.js
Module not found: Error: Can't resolve 'redux-saga-firebase' in '/Users/alexey.lukin/proj/redux-saga-firebase/example/src/redux'
 @ ./redux/rsf.js 3:0-52 12:14-31
 @ ./redux/sagas/storage.js
 @ ./redux/sagas/index.js
 @ ./redux/store.js
 @ ./index.js
 @ multi ../node_modules/webpack-dev-server/client?http://localhost:8080 @babel/polyfill ./index.js

I solved it by installing package inside demo folder yarn add redux-saga-firebase

Next one is this warning

WARNING in ./index.js 27:0-12
"export 'injectGlobal' was not found in 'styled-components'
 @ multi ../node_modules/webpack-dev-server/client?http://localhost:8080 @babel/polyfill ./index.js

Solved it by limiting version of styled components to 3x: "styled-components": "^3.4.9",

llamerr commented 5 years ago

Second issue need to be solved differently by migrating to new version probably, see https://spectrum.chat/next-js/general/export-injectglobal-was-not-found-in-styled-components~8c63763a-eefb-45e2-8523-de5f01a230fc and https://www.styled-components.com/docs/faqs#what-do-i-need-to-do-to-migrate-to-v4

n6g7 commented 5 years ago

Hi @llamerr, thanks for the feedback!

Your second point should be fixed by now, can you confirm?

As for resolving redux-saga-firebase, it should be taken care of by the file:.. dependency in example/package.json, I'm not quite sure why this is not working for you. Can you check whether there you have a example/node_modules/redux-saga-firebase directory? If so, what does it contain?