Error in boot-server.tsx for react-redux app when deploying to Azure #781

Closed
opened 2025-08-09 17:17:39 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @tonven on 5/4/2017

Hi. I got this error when I try to deploy fresh react-redux app.
`ERROR in [at-loader] ./ClientApp/boot-server.tsx:43:25 TS2345: Argument of type '{ html: string; globals: { initialReduxState: ApplicationState; }; }' is not assignable to parameter of type 'RenderToStringResult | RedirectResult | PromiseLike'. Type '{ html: string; globals: { initialReduxState: ApplicationState; }; }' is not assignable to type 'PromiseLike'. Property 'then' is missing in type '{ html: string; globals: { initialReduxState: ApplicationState; }; }'.

Can anyone help me with this?
Thank you in advance!

*Originally created by @tonven on 5/4/2017* Hi. I got this error when I try to deploy fresh react-redux app. `ERROR in [at-loader] ./ClientApp/boot-server.tsx:43:25 TS2345: Argument of type '{ html: string; globals: { initialReduxState: ApplicationState; }; }' is not assignable to parameter of type 'RenderToStringResult | RedirectResult | PromiseLike<RenderResult>'. Type '{ html: string; globals: { initialReduxState: ApplicationState; }; }' is not assignable to type 'PromiseLike<RenderResult>'. Property 'then' is missing in type '{ html: string; globals: { initialReduxState: ApplicationState; }; }'. Can anyone help me with this? Thank you in advance!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#781
No description provided.