You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 18, 2024. It is now read-only.
Describe the bug
redux-thunk與v2.3.0不相容, 在編譯的時候會出現
(14,84): Type 'Middleware' is not generic.
在redux-thunk的release note有詳述這件事情 https://github.com/reduxjs/redux-thunk/releases
他們提供的建議是,要不是停在 v2.2.0 不然就是 升級到redux 4.0
To Reproduce
git clone
改tsconfig.js 加入baseUrl到compilerOptions, 先設定為”/“
npm install yarn -g
npm install
yarn run build
See error
Expected behavior
可以正常編譯
Screenshots
wenchenx@ggv:~/ggvworkdir/sensetw/sensemap/src$ NODE_ENV=development yarn run build
yarn run v1.7.0
$ react-scripts-ts build
Creating an optimized production build...
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
ts-loader: Using [email protected] and /home/wenchenx/ggvworkdir/sensetw/sensemap/tsconfig.json
No valid rules have been specified for JavaScript files
Failed to compile.
/home/wenchenx/ggvworkdir/sensetw/sensemap/node_modules/redux-thunk/index.d.ts
(14,84): Type 'Middleware' is not generic.
Describe the bug
redux-thunk與v2.3.0不相容, 在編譯的時候會出現
(14,84): Type 'Middleware' is not generic.
在redux-thunk的release note有詳述這件事情 https://github.com/reduxjs/redux-thunk/releases
他們提供的建議是,要不是停在 v2.2.0 不然就是 升級到redux 4.0
To Reproduce
Expected behavior
可以正常編譯
Screenshots
wenchenx@ggv:~/ggvworkdir/sensetw/sensemap/src$ NODE_ENV=development yarn run build
yarn run v1.7.0
$ react-scripts-ts build
Creating an optimized production build...
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
ts-loader: Using [email protected] and /home/wenchenx/ggvworkdir/sensetw/sensemap/tsconfig.json
No valid rules have been specified for JavaScript files
Failed to compile.
/home/wenchenx/ggvworkdir/sensetw/sensemap/node_modules/redux-thunk/index.d.ts
(14,84): Type 'Middleware' is not generic.
error Command failed with exit code 1.
{
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: