Angular client compile errors

We just started getting these errors when building our Angular project

     Error: node_modules/@servicestack/client/dist/index.d.ts:484:20 - error TS1005: ';' expected.

    484     get completed(): boolean;
                           ~


    Error: node_modules/@servicestack/client/dist/index.d.ts:484:22 - error TS2693: 'boolean' only refers to a type, but is being used as a value here.

    484     get completed(): boolean;
                             ~~~~~~~


    Error: node_modules/@servicestack/client/dist/index.d.ts:484:5 - error TS1131: Property or signature expected.

    484     get completed(): boolean;

using “@servicestack/client”: “^1.1.17”

It looks like your App’s TypeScript configuration doesn’t understand getters defined in the TypeScript definition file which have been added to support the new ApiResult methods.

If it helps, our Angular SPA template uses the latest client and is able to build without issue:

If updating TypeScript doesn’t resolve the issue I’d suggest rolling back to the previous version, i.e. before these new APIs were added.

1 Like

What version number would be the one before these new APIs were added?

The last release that didn’t have ApiResult<T> was v1.0.59.

1 Like