Skip to content

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

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

Open
algolee opened this issue May 23, 2018 · 8 comments

Comments

@algolee
Copy link

algolee commented May 23, 2018

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; }>'._**
@msreekm
Copy link

msreekm commented Jul 2, 2018

same error here!

@samparsky
Copy link

@algolee Have you been able to resolve this?

@lukasbash
Copy link

lukasbash commented Jul 22, 2018

Same issue. Not usable with this error.

@jasonm23
Copy link

There's a deprecation message in https://github.com/piotrwitek/utility-types: from TS v2.8 on use built-in ReturnType<T> instead of getReturnOfExpression

@izaruba
Copy link

izaruba commented Nov 12, 2018

I've handled that by installing utility-types and exporting getReturnOfExpression from that module.

import { getReturnOfExpression } from 'utility-types';

@cacois
Copy link

cacois commented Jun 27, 2019

This bug has been around for over a year? Seems this project is abandoned.

@drepram
Copy link

drepram commented Jul 1, 2019

Seems like it, last commit was from a year ago.

@jasonm23
Copy link

jasonm23 commented Jul 1, 2019 via email

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

8 participants