Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

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

Closed

Description

@tonven

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!

Activity

  1. changed the title [-]Error boot-server.tsx for react-redux app when deploying to Azure [/-] [+]Error in boot-server.tsx for react-redux app when deploying to Azure [/+] on May 4, 2017
  2. marcelush commented on May 4, 2017

    @marcelush

    the problem might be aspnet-prerendering package, try using aspnet-prerendering@2.0.3

  3. SteveSandersonMS commented on May 4, 2017

    @SteveSandersonMS
    Member

    Sorry for the inconvenience. This is now fixed as per discussion in #918 - just update to the latest aspnet-prerendering to get the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions