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

Unable to create actions with redux-saga plugin #7

Closed
aritgithub opened this issue Mar 13, 2020 · 2 comments
Closed

Unable to create actions with redux-saga plugin #7

aritgithub opened this issue Mar 13, 2020 · 2 comments

Comments

@aritgithub
Copy link

Rekit App 3.0.5
Rekit Studio 3.0.3
Rekit Core 3.0.0
Rekit Redux Saga plugin 1.0.0 appears to be installed (View -> Plugins)

Created new Rekit React app from project wizard.
Adding new async action on home feature doesn't configure it as Redux Saga.
Does not even seem to register the Redux Saga middleware.
In the old (web) version of Rekit Studio (2.3.3) creating the first action adjusting all Redux Saga configurations (supnate/rekit#99).
Is there any configuration/workaround I can apply?

@aritgithub
Copy link
Author

I tried to modify configuration files:

rekit.json
{ "appType": "rekit-react", "rekitTest": true, "exclude": [], "include": [], "css": "scss", **"redux": "saga"** }

package.json
{ "name": "pa-sbo-ui-2", "version": "2.0.0", "description": "PeopleApp Super Back Office UI", "private": true, "dependencies": { "@babel/core": "^7.4.3", "@svgr/webpack": "2.4.1", "axios": "^0.18.0", "babel-core": "7.0.0-bridge.0", "babel-eslint": "9.0.0", "babel-jest": "23.6.0", "babel-loader": "8.0.4", "babel-plugin-named-asset-import": "^0.3.0", "babel-preset-react-app": "7.0.2", "bfj": "6.1.1", "case-sensitive-paths-webpack-plugin": "2.1.2", "chalk": "2.4.1", "connected-react-router": "^6.2.2", "cross-env": "^5.2.0", "css-loader": "1.0.0", "dotenv": "6.0.0", "dotenv-expand": "4.2.0", "enzyme": "^3.8.0", "enzyme-adapter-react-16": "^1.8.0", "eslint": "^5.13.0", "eslint-config-react-app": "^3.0.8", "eslint-loader": "2.1.1", "eslint-plugin-flowtype": "2.50.1", "eslint-plugin-import": "2.14.0", "eslint-plugin-jsx-a11y": "6.1.2", "eslint-plugin-react": "7.11.1", "eslint-plugin-react-hooks": "^2.0.1", "file-loader": "2.0.0", "fork-ts-checker-webpack-plugin-alt": "0.4.14", "fs-extra": "7.0.0", "history": "^4.7.2", "html-webpack-plugin": "4.0.0-alpha.2", "identity-obj-proxy": "3.0.0", "jest": "23.6.0", "jest-pnp-resolver": "1.0.1", "jest-resolve": "23.6.0", "mini-css-extract-plugin": "0.4.3", "nock": "^10.0.6", "node-sass-chokidar": "^1.3.4", "optimize-css-assets-webpack-plugin": "5.0.1", "pnp-webpack-plugin": "1.1.0", "postcss-flexbugs-fixes": "4.1.0", "postcss-loader": "3.0.0", "postcss-preset-env": "6.3.1", "postcss-safe-parser": "4.0.1", "prettier": "^1.16.3", "react": "^16.8.6", "react-app-polyfill": "^0.2.0", "react-dev-utils": "^7.0.1", "react-dom": "^16.8.6", "react-hot-loader": "^4.12.12", "react-redux": "^7.1.1", "react-router-dom": "^5.0.1", "redux": "^4.0.1", "redux-logger": "^3.0.6", "redux-mock-store": "^1.5.3", **"redux-saga": "^1.1.3",** "redux-thunk": "^2.3.0", "resolve": "1.8.1", "sass-loader": "7.1.0", "style-loader": "0.23.0", "terser-webpack-plugin": "1.1.0", "url-loader": "1.1.1", "webpack": "4.19.1", "webpack-dev-server": "3.1.14", "webpack-manifest-plugin": "2.0.4", "workbox-webpack-plugin": "3.6.3" }, "scripts": { "start": "cross-env PORT=3100 node scripts/start.js", "build": "node scripts/build.js", "test": "node scripts/test.js" }, "browserslist": [ ">0.2%", "not dead", "not ie <= 11", "not op_mini all" ], "jest": { "collectCoverageFrom": [ "src/**/*.{js,jsx,ts,tsx}", "!src/**/*.d.ts" ], "resolver": "jest-pnp-resolver", "setupFiles": [ "react-app-polyfill/jsdom", "<rootDir>/tests/setup.js" ], "testMatch": [ "<rootDir>/tests/**/?(*.)(spec|test).{js,jsx,ts,tsx}" ], "testEnvironment": "jsdom", "testURL": "http://localhost", "transform": { "^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest", "^.+\\.css$": "<rootDir>/config/jest/cssTransform.js", "^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js" }, "transformIgnorePatterns": [ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$", "^.+\\.module\\.(css|sass|scss)$" ], "moduleNameMapper": { "^react-native$": "react-native-web", "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy" }, "moduleFileExtensions": [ "web.js", "js", "web.ts", "ts", "web.tsx", "tsx", "json", "web.jsx", "jsx", "node" ] }, "devDependencies": { **"rekit-plugin-redux-saga": "^1.0.0"** } }

but nothing has changed :-(
Any suggestion?

@aritgithub
Copy link
Author

This is a Rekit issue, I opened it there supnate/rekit#225.

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

1 participant