Skip to content

'typesafe-actions' does not contain an export named 'getReturnOfExpression' #3

Open
@algolee

Description

@algolee

After the installation ended, I just tried to run the app with "npm start" and got the following error:

Failed to compile.
./src/store/actions/counter/counterActions.ts
10:56-77 'typesafe-actions' does not contain an export named 'getReturnOfExpression'.

I run "npm i --save typesafe-actions" and that fixed the error. However, i now get a different error:

**_src/components/app/App.tsx
(62,48): Type 'Readonly<{ router: RouterState; counter: number; }>' does not satisfy the constraint 'Action<any>'.
  Property 'type' is missing in type 'Readonly<{ router: RouterState; counter: number; }>'._**

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions