-
Notifications
You must be signed in to change notification settings - Fork 261
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
rekit-plugin-redux-saga not installing properly #99
Comments
Hi @cellerich , you need to run "npm install" before install the plugin, the correct order is: npm install You don't need to install "rekit-studio" and "rekit-core" separately, they will be installed when run "npm install". |
Thanks @supnate. Will try this out immediately :-) |
Sorry to bother again. Maybe I'm asking "noob" questions:
If I open Rekit Studio and try to add new feature I get the same error as mentioned above in picture 1.
I'm running the terminal as Admin, so there should be no issues writing files. Here is the output after the
|
Hi @cellerich , could you try adding an async-action in an existing feature first? It seems there's bug when creating a feature the rootSaga.js is not auto initialized. |
Hi @supnate Thanks so much, no I can continue to explore the "rekit-world"! |
That's great! Thanks for the patience! It's really a bug should be fixed. |
I'm using Rekit in my current project with redux-saga and rekit-redux-saga plugin. I noticed immediately that something was not working properly and I decided to fixed myself. I believe that the rekit-redux-saga library was not updated (yet) to be compatible with the last version of redux-saga. Here are the changes I did to make it work again # src/common/rootSaga.js
import { all } from "redux-saga/effects";
...
function* rootSaga() {
yield all(sagas.map(/* istanbul ignore next */ saga => saga())); // The all function was not before in this line
} The redux-saga templates will still import the "delay" function that is not available anymore. Just remove that import. It's used only for demonstration purposes anyway. |
As mentioned already in the Gitter Channel I thought I file an issue as well.
Steps to reproduce:
npm install -g rekit@latest
rekit create cf03
cd cf03
npm install rekit-core@latest rekit-studio@latest redux-saga
rekit install rekit-plugin-redux-saga
npm install
npm start
Everything compiles and start the 3 servers. When I try to add a new Feature in Rekit Studio i get the following error:
If I look at the source files there is also no "rootSaga.js" and no Saga Middleware injected in the Apps index.js
Either I do something terrible wrong or there might be a bug in the plugin-code.
Thanks for the great work on Rekit, which helps a beginner in React and Redux stuff to grasp concepts and insights around this cool stuff.
The text was updated successfully, but these errors were encountered: