piotrwitek / typesafe-actions

Typesafe utilities for "action-creators" in Redux / Flux Architecture
https://codesandbox.io/s/github/piotrwitek/typesafe-actions/tree/master/codesandbox
MIT License
2.41k stars 98 forks source link

typesafe-actions@5.1.0-1: Cannot find module './deprecated'. #205

Closed Aridor2006 closed 5 years ago

Aridor2006 commented 5 years ago

Description

After updating to 5.1.0-1 I get the following error:

/.../node_modules/typesafe-actions/dist/index.d.ts TypeScript error in /.../node_modules/typesafe-actions/dist/index.d.ts(17,39): Cannot find module './deprecated'. TS2307

15 | export { isActionOf } from './is-action-of';
16 | export { Types, ActionType, StateType, TypeConstant, Action, Reducer, EmptyAction, PayloadAction, PayloadMetaAction, ActionCreator, EmptyActionCreator, PayloadActionCreator, PayloadMetaActionCreator, ActionCreatorTypeMetadata, ActionBuilder, ActionCreatorBuilder, AsyncActionCreatorBuilder, } from './type-helpers';

17 | export { default as deprecated } from './deprecated'; | ^ 18 |

After deleting that line manually everything seems to work after changing my code to the new API.

piotrwitek commented 5 years ago

Hey @Aridor2006, just released v5.1.0 with the fix!

dregenor commented 4 years ago

Still not work. node_modules/typesafe-actions/dist/index.d.ts:17:39 - error TS2307: Cannot find module './deprecated'.