You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading Nest from 6.10.11 to 7.0.13 typescript errors thrown on build:
node_modules/@nestjs/common/http/http.service.d.ts:13:9 - error TS1086: An accessor cannot be declared in an ambient context.
13 get axiosRef(): AxiosInstance;
~~~~~~~~
node_modules/@nestjs/core/helpers/http-adapter-host.d.ts:21:9 - error TS1086: An accessor cannot be declared in an ambient context.
21 set httpAdapter(httpAdapter: T);
~~~~~~~~~~~
node_modules/@nestjs/core/helpers/http-adapter-host.d.ts:28:9 - error TS1086: An accessor cannot be declared in an ambient context.
28 get httpAdapter(): T;
~~~~~~~~~~~
node_modules/@nestjs/core/injector/container.d.ts:19:9 - error TS1086: An accessor cannot be declared in an ambient context.
19 get applicationConfig(): ApplicationConfig | undefined;
~~~~~~~~~~~~~~~~~
node_modules/@nestjs/core/injector/instance-wrapper.d.ts:33:9 - error TS1086: An accessor cannot be declared in an ambient context.
33 get id(): string;
~~
node_modules/@nestjs/core/injector/instance-wrapper.d.ts:34:9 - error TS1086: An accessor cannot be declared in an ambient context.
34 set instance(value: T);
...
Please, update your TypeScript package to the latest version. Unfortunately, TS team introduced a breaking change and they're not willing to revert it back.
Bug Report
After upgrading Nest from
6.10.11
to7.0.13
typescript errors thrown on build:Seems that #3513 still the case even after microsoft/TypeScript#33939 closed
Environment
The text was updated successfully, but these errors were encountered: