reduxjs / redux-devtools

DevTools for Redux with hot reloading, action replay, and customizable UI
http://youtube.com/watch?v=xsSnOQynTHs
MIT License
13.99k stars 1.16k forks source link

Angular v15 Application Broken After Migrating redux-devtools-extension package moved to @redux-devtools/extension #1532

Open khetaramsb opened 10 months ago

khetaramsb commented 10 months ago

Issue Overview: After redux-devtools-extension package moved to @redux-devtools/extension package, I am encountering TypeScript errors in my project. These errors seem to be related to type definitions in the package.

Errors Encountered:

  1. Error in developmentOnly.d.ts:

    • Error Message: "Generic type 'StoreEnhancer' requires 1 type argument(s)."
    • Line: 4
    • Code: export declare const devToolsEnhancer: (options?: EnhancerOptions) => StoreEnhancer;
  2. Error in index.d.ts:

    • Error Message: "Type 'Action' is not generic."
    • Line: 216
    • Code: send: (action: Action<string>, state: unknown) => void;
  3. Error in index.d.ts:

    • Error Message: "Generic type 'StoreEnhancer' requires 1 type argument(s)."
    • Line: 219
    • Code: (config?: Config): StoreEnhancer;
  4. Error in index.d.ts:

    • Error Message: "Generic type 'StoreEnhancer' requires 1 type argument(s)."
    • Line: 237
    • Code: export declare const devToolsEnhancer: (options?: EnhancerOptions) => StoreEnhancer;
  5. Error in logOnly.d.ts:

    • Error Message: "Generic type 'StoreEnhancer' requires 1 type argument(s)."
    • Line: 5
    • Code: export declare const devToolsEnhancer: (options?: EnhancerOptions) => StoreEnhancer;
  6. Error in logOnlyInProduction.d.ts:

    • Error Message: "Generic type 'StoreEnhancer' requires 1 type argument(s)."
    • Line: 4
    • Code: export declare const devToolsEnhancer: (options?: EnhancerOptions) => StoreEnhancer;

Context: These errors are occurring during the build process of my project and are preventing the successful compilation of the TypeScript code. This issue has a significant impact on my project's functionality.

package.json file

Screenshot 2023-11-06 at 5 25 00 PM Screenshot 2023-11-06 at 6 10 51 PM

Configuration:

Reproduction Steps: If necessary, I can provide a minimal code example that triggers these errors.

Environment Information:

thunkMiddleware File

Screenshot 2023-11-06 at 5 27 47 PM

ProjectStore file

Screenshot 2023-11-06 at 5 29 42 PM

tsconfig.json

Screenshot 2023-11-06 at 5 32 13 PM

I appreciate your help in resolving these TypeScript errors in the @redux-devtools/extension package.

khetaramsb commented 10 months ago

This errors resolved i need first upgrade redux after redux-devtools-extension package moved to @redux-devtools/extension package,

Methuselah96 commented 10 months ago

Maybe I should update the peer dependency then.