#
  • design@iqonicthemes.com
closed
Angular don't work

Dear team,


I read documentation and when in run followings commands:

npm install

ng serve

When I run: ng serve

I receive followings error, can you help me?

Microsoft Windows [Version 10.0.18363.959]

(c) 2019 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd D:\SourceTree\LinkedForWork\client\angular

C:\Windows\system32>d:

D:\SourceTree\LinkedForWork\client\angular>ng serve

? Would you like to share anonymous usage data about this project with the Angular Team at

Google under Google’s Privacy Policy at https://policies.google.com/privacy? For more

details and how to change this setting, see http://angular.io/analytics. Yes

Thank you for sharing anonymous usage data. Would you change your mind, the following

command will disable this feature entirely:

    ng analytics project off

An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json'

Require stack:

- C:\Users\ionel\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\architect\node\node-modules-architect-host.js

- C:\Users\ionel\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\architect\node\index.js

- C:\Users\ionel\AppData\Roaming\npm\node_modules\@angular\cli\models\architect-command.js

- C:\Users\ionel\AppData\Roaming\npm\node_modules\@angular\cli\commands\serve-impl.js

- C:\Users\ionel\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\schematics\tools\export-ref.js

- C:\Users\ionel\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\schematics\tools\index.js

- C:\Users\ionel\AppData\Roaming\npm\node_modules\@angular\cli\utilities\json-schema.js

- C:\Users\ionel\AppData\Roaming\npm\node_modules\@angular\cli\models\command-runner.js

- C:\Users\ionel\AppData\Roaming\npm\node_modules\@angular\cli\lib\cli\index.js

- C:\Users\ionel\AppData\Roaming\npm\node_modules\@angular\cli\lib\init.js

- C:\Users\ionel\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng

See "C:\Users\ionel\AppData\Local\Temp\ng-enSD9X\angular-errors.log" for further details.

D:\SourceTree\LinkedForWork\client\angular>npm install

npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.

npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.

npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated

npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated

> core-js@3.6.4 postinstall D:\SourceTree\LinkedForWork\client\angular\node_modules\@angular-devkit\build-angular\node_modules\core-js

> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

> https://opencollective.com/core-js

> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.11 postinstall D:\SourceTree\LinkedForWork\client\angular\node_modules\babel-runtime\node_modules\core-js

> node -e "try{require('./postinstall')}catch(e){}"

> core-js@3.6.5 postinstall D:\SourceTree\LinkedForWork\client\angular\node_modules\core-js

> node -e "try{require('./postinstall')}catch(e){}"

> core-js@2.6.11 postinstall D:\SourceTree\LinkedForWork\client\angular\node_modules\karma\node_modules\core-js

> node -e "try{require('./postinstall')}catch(e){}"

> @angular/cli@8.3.29 postinstall D:\SourceTree\LinkedForWork\client\angular\node_modules\@angular\cli

> node ./bin/postinstall/script.js

npm notice created a lockfile as package-lock.json. You should commit this file.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\chokidar\node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm WARN notsup Unsupported engine for watchpack-chokidar2@2.0.0: wanted: {"node":"<8.10.0"} (current: {"node":"12.18.2","npm":"6.14.5"})

npm WARN notsup Not compatible with your version of node/npm: watchpack-chokidar2@2.0.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\watchpack-chokidar2\node_modules\chokidar\node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\webpack-dev-server\node_modules\chokidar\node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\@angular\compiler-cli\node_modules\chokidar\node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\karma\node_modules\chokidar\node_modules\fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm WARN @ngrx/core@1.2.0 requires a peer of rxjs@^5.0.0-beta.12 but none is installed. You must install peer dependencies yourself.

npm WARN bootstrap@4.5.0 requires a peer of popper.js@^1.16.0 but none is installed. You must install peer dependencies yourself.

npm WARN ng-apexcharts@1.5.0 requires a peer of @angular/common@^9.0.0 but none is installed. You must install peer dependencies yourself.

npm WARN ng-apexcharts@1.5.0 requires a peer of @angular/core@^9.0.0 but none is installed. You must install peer dependencies yourself.

npm WARN ng-apexcharts@1.5.0 requires a peer of rxjs@^6.5.5 but none is installed. You must install peer dependencies yourself.

npm WARN ng-select2@1.2.2 requires a peer of @types/jquery@^3.3.x but none is installed. You must install peer dependencies yourself.

npm WARN ng-select2@1.2.2 requires a peer of @types/select2@^4.0.x but none is installed. You must install peer dependencies yourself.

npm WARN karma-jasmine-html-reporter@1.5.4 requires a peer of jasmine-core@>=3.5 but none is installed. You must install peer dependencies yourself.

added 1511 packages from 1155 contributors and audited 1520 packages in 271.264s

45 packages are looking for funding

  run `npm fund` for details

found 2 low severity vulnerabilities

  run `npm audit fix` to fix them, or `npm audit` for details

D:\SourceTree\LinkedForWork\client\angular>ng serve

Your global Angular CLI version (10.0.3) is greater than your local

version (8.3.29). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".

10% building 3/3 modules 0 activei 「wds」: Project is running at http://localhost:4200/webpack-dev-server/

i 「wds」: webpack output is served from /

i 「wds」: 404s will fallback to //index.html

chunk {main} main.js, main.js.map (main) 2.02 kB [initial] [rendered]

chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 154 kB [initial] [rendered]

chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]

chunk {scripts} scripts.js, scripts.js.map (scripts) 887 kB [entry] [rendered]

chunk {styles} styles.js, styles.js.map (styles) 3.7 MB [initial] [rendered]

chunk {vendor} vendor.js, vendor.js.map (vendor) 342 kB [initial] [rendered]

Date: 2020-07-23T08:54:58.057Z - Hash: b9b14cb79f7c59caf546 - Time: 34310ms

ERROR in node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:20:9 - error TS1086: An accessor cannot be declared in an ambient context.

20     get disabled(): boolean;

           ~~~~~~~~

node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:21:9 - error TS1086: An accessor cannot be declared in an ambient context.

21     set disabled(disabled: boolean);

           ~~~~~~~~

node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:23:9 - error TS1086: An accessor cannot be declared in an ambient context.

23     get sensorDisabled(): boolean;

           ~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:24:9 - error TS1086: An accessor cannot be declared in an ambient context.

24     set sensorDisabled(disabled: boolean);

           ~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:26:9 - error TS1086: An accessor cannot be declared in an ambient context.

26     get pointerEventsDisabled(): boolean;

           ~~~~~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:27:9 - error TS1086: An accessor cannot be declared in an ambient context.

27     set pointerEventsDisabled(disabled: boolean);

           ~~~~~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:29:9 - error TS1086: An accessor cannot be declared in an ambient context.

29     get viewportPropagateMouseMove(): boolean;

           ~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:30:9 - error TS1086: [0mAn accessor cannot be declared in an ambient context.

30     set viewportPropagateMouseMove(disabled: boolean);

           ~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:101:9 - error TS1086: An accessor cannot be declared in an ambient context.

101     get nativeElement(): HTMLElement;

            ~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:10:9 - error TS1086: An accessor cannot be declared in an ambient context.

10     get clientHeight(): number;

           ~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:11:9 - error TS1086: An accessor cannot be declared in an ambient context.

11     get clientWidth(): number;

           ~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:12:9 - error TS1086: An accessor cannot be declared in an ambient context.

12     get scrollHeight(): number;

           ~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:13:9 - error TS1086: An accessor cannot be declared in an ambient context.

13     get scrollWidth(): number;

           ~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:14:9 - error TS1086: An accessor cannot be declared in an ambient context.

14     get scrollTop(): number;

           ~~~~~~~~~

node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:15:9 - error TS1086: An accessor cannot be declared in an ambient context.

15     get scrollLeft(): number;

           ~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:16:9 - error TS1086: An accessor cannot be declared in an ambient context.

16     get scrollMaxX(): number;

           ~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:17:9 - error TS1086: An accessor cannot be declared in an ambient context.

17     get scrollMaxY(): number;

           ~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:18:9 - error TS1086: An accessor cannot be declared in an ambient context.

18     get contentHeight(): number;

           ~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/scrollbar.component.d.ts:14:19 - error TS1086: An accessor cannot be declared in an ambient context.

14     protected get viewportScrollSize(): number;

                     ~~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/scrollbar.component.d.ts:27:19 - error TS1086: An accessor cannot be declared in an ambient context.

27     protected get viewportScrollSize(): number;

                     ~~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/scrollbar.component.d.ts:28:9 - error TS1086: An accessor cannot be declared in an ambient context.

28     get thickness(): number;

           ~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/scrollbar.d.ts:21:28 - error TS1086: An accessor cannot be declared in an ambient context.

21     protected abstract get viewportScrollSize(): number;

                              ~~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:11:28 - error TS1086: An accessor cannot be declared in an ambient context.

11     protected abstract get pageProperty(): string;

                              ~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:12:28 - error TS1086: An accessor cannot be declared in an ambient context.

12     protected abstract get clientProperty(): string;

                              ~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:13:18 - error TS1086: An accessor cannot be declared in an ambient context.

13     abstract get dragStartOffset(): number;

                    ~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:14:18 - error TS1086: An accessor cannot be declared in an ambient context.

14     abstract get size(): number;

                    ~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:15:28 - error TS1086: An accessor cannot be declared in an ambient context.

15     protected abstract get viewportScrollSize(): number;

                              ~~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:16:28 - error TS1086: An accessor cannot be declared in an ambient context.

16     protected abstract get viewportScrollOffset(): number;

                              ~~~~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:17:18 - error TS1086: An accessor cannot be declared in an ambient context.

17     abstract get viewportScrollMax(): number;

                    ~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:18:9 - error TS1086: An accessor cannot be declared in an ambient context.

18     get trackMax(): number;

           ~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:19:9 - error TS1086: An accessor cannot be declared in an ambient context.

19     get clientRect(): ClientRect;

           ~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:20:9 - error TS1086: An accessor cannot be declared in an ambient context.

20     get clicked(): Observable<any>;

           ~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:10:19 - error TS1086: An accessor cannot be declared in an ambient context.

10     protected get clientProperty(): string;

                     ~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:11:19 - error TS1086: An accessor cannot be declared in an ambient context.

11     protected get pageProperty(): string;

                     ~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:12:19 - error TS1086: An accessor cannot be declared in an ambient context.

12     protected get viewportScrollSize(): number;

                     ~~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:13:19 - error TS1086: An accessor cannot be declared in an ambient context.

13     protected get viewportScrollOffset(): number;

                     ~~~~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:14:9 - error TS1086: An accessor cannot be declared in an ambient context.

14     get viewportScrollMax(): number;

           ~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:15:9 - error TS1086: An accessor cannot be declared in an ambient context.

15     get dragStartOffset(): number;

           ~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:16:9 - error TS1086: An accessor cannot be declared in an ambient context.

16     get size(): number;

           ~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:28:19 - error TS1086: An accessor cannot be declared in an ambient context.

28     protected get pageProperty(): string;

                     ~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:29:19 - error TS1086: An accessor cannot be declared in an ambient context.

29     protected get viewportScrollSize(): number;

                     ~~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:30:19 - error TS1086: An accessor cannot be declared in an ambient context.

30     protected get viewportScrollOffset(): number;

                     ~~~~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:31:9 - error TS1086: An accessor cannot be declared in an ambient context.

31     get viewportScrollMax(): number;

           ~~~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:32:19 - error TS1086: An accessor cannot be declared in an ambient context.

32     protected get clientProperty(): string;

                     ~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:33:9 - error TS1086: An accessor cannot be declared in an ambient context.

33     get dragStartOffset(): number;

           ~~~~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:34:9 - error TS1086: An accessor cannot be declared in an ambient context.

34     get size(): number;

           ~~~~

node_modules/ngx-scrollbar/lib/scrollbar/track/track.d.ts:7:9 - error TS1086: An accessor cannot be declared in an ambient context.

7     get clicked(): Observable<any>;

          ~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/track/track.d.ts:8:9 - error TS1086: An accessor cannot be declared in an ambient context.

8     get hovered(): Observable<boolean>;

          ~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/track/track.d.ts:9:18 - error TS1086: An accessor cannot be declared in an ambient context.

9     abstract get pageProperty(): string;

                   ~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/track/track.d.ts:10:18 - error TS1086: An accessor cannot be declared in an ambient context.

10     abstract get size(): number;

                    ~~~~

node_modules/ngx-scrollbar/lib/scrollbar/track/track.d.ts:11:18 - error TS1086: An accessor cannot be declared in an ambient context.

11     abstract get offset(): number;

                    ~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/track/track.d.ts:12:9 - error TS1086: An accessor cannot be declared in an ambient context.

12     get clientRect(): ClientRect;

           ~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/track/track.directive.d.ts:7:9 - error TS1086: An accessor cannot be declared in an ambient context.

7     get pageProperty(): string;

          ~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/track/track.directive.d.ts:8:9 - error TS1086: An accessor cannot be declared in an ambient context.

8     get offset(): number;

          ~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/track/track.directive.d.ts:9:9 - error TS1086: An accessor cannot be declared in an ambient context.

9     get size(): number;

          ~~~~

node_modules/ngx-scrollbar/lib/scrollbar/track/track.directive.d.ts:16:9 - error TS1086: An accessor cannot be declared in an ambient context.

16     get pageProperty(): string;

           ~~~~~~~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/track/track.directive.d.ts:17:9 - error TS1086: An accessor cannot be declared in an ambient context.

17     get offset(): number;

           ~~~~~~

node_modules/ngx-scrollbar/lib/scrollbar/track/track.directive.d.ts:18:9 - error TS1086: An accessor cannot be declared in an ambient context.

18     get size(): number;

           ~~~~

node_modules/ngx-scrollbar/lib/utils/ng-attr.directive.d.ts:6:9 - error TS1086: An accessor cannot be declared in an ambient context.

6     set ngAttr(attrs: NgScrollbarState);

          ~~~~~~

node_modules/ngx-scrollbar/lib/utils/resize-sensor.directive.d.ts:20:9 - error TS1086: An accessor cannot be declared in an ambient context.

20     get debounce(): number;

           ~~~~~~~~

node_modules/ngx-scrollbar/lib/utils/resize-sensor.directive.d.ts:21:9 - error TS1086: An accessor cannot be declared in an ambient context.

21     set debounce(value: number);

           ~~~~~~~~

node_modules/ngx-scrollbar/lib/utils/resize-sensor.directive.d.ts:24:9 - error TS1086: An accessor cannot be declared in an ambient context.

24     get disabled(): any;

           ~~~~~~~~

node_modules/ngx-scrollbar/lib/utils/resize-sensor.directive.d.ts:25:9 - error TS1086: An accessor cannot be declared in an ambient context.

25     set disabled(value: any);

           ~~~~~~~~

node_modules/ngx-scrollbar/smooth-scroll/smooth-scroll-manager.d.ts:8:17 - error TS1086: An accessor cannot be declared in an ambient context.

8     private get _w();

                  ~~

node_modules/ngx-scrollbar/smooth-scroll/smooth-scroll-manager.d.ts:12:17 - error TS1086: An accessor cannot be declared in an ambient context.

12     private get _now();

                   ~~~~

src/app/app.module.ts:19:29 - error TS2307: Cannot find module 'ngx-bootstrap'.

19 import { AlertModule } from 'ngx-bootstrap';

                               ~~~~~~~~~~~~~~~

src/app/views/application/email/index/index.component.ts:3:42 - error TS2307: Cannot find module 'ngx-bootstrap'.

3 import {BsModalRef, BsModalService} from 'ngx-bootstrap';

                                           ~~~~~~~~~~~~~~~

src/app/views/core/core.module.ts:18:29 - error TS2307: Cannot find module 'ngx-bootstrap'.

18 import { AlertModule } from 'ngx-bootstrap';

                               ~~~~~~~~~~~~~~~

src/app/views/views.module.ts:12:33 - error TS2307: Cannot find module 'ngx-bootstrap'.

12 import {ProgressbarModule} from 'ngx-bootstrap';

                                   ~~~~~~~~~~~~~~~

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

i 「wdm」: Failed to compile.

Asked 1 month ago on July 23, 2020 8:56 AM Comments 3 times


  1. Generic placeholder image

    ionel stefanuca replied

    ERROR in node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:20:9 - error TS1086: An accessor cannot be declared in an ambient context.

    20     get disabled(): boolean;

               ~~~~~~~~

    node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:21:9 - error TS1086: An accessor cannot be declared in an ambient context.

    21     set disabled(disabled: boolean);

               ~~~~~~~~

    node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:23:9 - error TS1086: An accessor cannot be declared in an ambient context.

    23     get sensorDisabled(): boolean;

               ~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:24:9 - error TS1086: An accessor cannot be declared in an ambient context.

    24     set sensorDisabled(disabled: boolean);

               ~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:26:9 - error TS1086: An accessor cannot be declared in an ambient context.

    26     get pointerEventsDisabled(): boolean;

               ~~~~~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:27:9 - error TS1086: An accessor cannot be declared in an ambient context.

    27     set pointerEventsDisabled(disabled: boolean);

               ~~~~~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:29:9 - error TS1086: An accessor cannot be declared in an ambient context.

    29     get viewportPropagateMouseMove(): boolean;

               ~~~~~~~~~~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:30:9 - error TS1086: [0mAn accessor cannot be declared in an ambient context.

    30     set viewportPropagateMouseMove(disabled: boolean);

               ~~~~~~~~~~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/ng-scrollbar.d.ts:101:9 - error TS1086: An accessor cannot be declared in an ambient context.

    101     get nativeElement(): HTMLElement;

                ~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:10:9 - error TS1086: An accessor cannot be declared in an ambient context.

    10     get clientHeight(): number;

               ~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:11:9 - error TS1086: An accessor cannot be declared in an ambient context.

    11     get clientWidth(): number;

               ~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:12:9 - error TS1086: An accessor cannot be declared in an ambient context.

    12     get scrollHeight(): number;

               ~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:13:9 - error TS1086: An accessor cannot be declared in an ambient context.

    13     get scrollWidth(): number;

               ~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:14:9 - error TS1086: An accessor cannot be declared in an ambient context.

    14     get scrollTop(): number;

               ~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:15:9 - error TS1086: An accessor cannot be declared in an ambient context.

    15     get scrollLeft(): number;

               ~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:16:9 - error TS1086: An accessor cannot be declared in an ambient context.

    16     get scrollMaxX(): number;

               ~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:17:9 - error TS1086: An accessor cannot be declared in an ambient context.

    17     get scrollMaxY(): number;

               ~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scroll-viewport.d.ts:18:9 - error TS1086: An accessor cannot be declared in an ambient context.

    18     get contentHeight(): number;

               ~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/scrollbar.component.d.ts:14:19 - error TS1086: An accessor cannot be declared in an ambient context.

    14     protected get viewportScrollSize(): number;

                         ~~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/scrollbar.component.d.ts:27:19 - error TS1086: An accessor cannot be declared in an ambient context.

    27     protected get viewportScrollSize(): number;

                         ~~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/scrollbar.component.d.ts:28:9 - error TS1086: An accessor cannot be declared in an ambient context.

    28     get thickness(): number;

               ~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/scrollbar.d.ts:21:28 - error TS1086: An accessor cannot be declared in an ambient context.

    21     protected abstract get viewportScrollSize(): number;

                                  ~~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:11:28 - error TS1086: An accessor cannot be declared in an ambient context.

    11     protected abstract get pageProperty(): string;

                                  ~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:12:28 - error TS1086: An accessor cannot be declared in an ambient context.

    12     protected abstract get clientProperty(): string;

                                  ~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:13:18 - error TS1086: An accessor cannot be declared in an ambient context.

    13     abstract get dragStartOffset(): number;

                        ~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:14:18 - error TS1086: An accessor cannot be declared in an ambient context.

    14     abstract get size(): number;

                        ~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:15:28 - error TS1086: An accessor cannot be declared in an ambient context.

    15     protected abstract get viewportScrollSize(): number;

                                  ~~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:16:28 - error TS1086: An accessor cannot be declared in an ambient context.

    16     protected abstract get viewportScrollOffset(): number;

                                  ~~~~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:17:18 - error TS1086: An accessor cannot be declared in an ambient context.

    17     abstract get viewportScrollMax(): number;

                        ~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:18:9 - error TS1086: An accessor cannot be declared in an ambient context.

    18     get trackMax(): number;

               ~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:19:9 - error TS1086: An accessor cannot be declared in an ambient context.

    19     get clientRect(): ClientRect;

               ~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.d.ts:20:9 - error TS1086: An accessor cannot be declared in an ambient context.

    20     get clicked(): Observable;

               ~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:10:19 - error TS1086: An accessor cannot be declared in an ambient context.

    10     protected get clientProperty(): string;

                         ~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:11:19 - error TS1086: An accessor cannot be declared in an ambient context.

    11     protected get pageProperty(): string;

                         ~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:12:19 - error TS1086: An accessor cannot be declared in an ambient context.

    12     protected get viewportScrollSize(): number;

                         ~~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:13:19 - error TS1086: An accessor cannot be declared in an ambient context.

    13     protected get viewportScrollOffset(): number;

                         ~~~~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:14:9 - error TS1086: An accessor cannot be declared in an ambient context.

    14     get viewportScrollMax(): number;

               ~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:15:9 - error TS1086: An accessor cannot be declared in an ambient context.

    15     get dragStartOffset(): number;

               ~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:16:9 - error TS1086: An accessor cannot be declared in an ambient context.

    16     get size(): number;

               ~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:28:19 - error TS1086: An accessor cannot be declared in an ambient context.

    28     protected get pageProperty(): string;

                         ~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:29:19 - error TS1086: An accessor cannot be declared in an ambient context.

    29     protected get viewportScrollSize(): number;

                         ~~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:30:19 - error TS1086: An accessor cannot be declared in an ambient context.

    30     protected get viewportScrollOffset(): number;

                         ~~~~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:31:9 - error TS1086: An accessor cannot be declared in an ambient context.

    31     get viewportScrollMax(): number;

               ~~~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:32:19 - error TS1086: An accessor cannot be declared in an ambient context.

    32     protected get clientProperty(): string;

                         ~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:33:9 - error TS1086: An accessor cannot be declared in an ambient context.

    33     get dragStartOffset(): number;

               ~~~~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/thumb/thumb.directive.d.ts:34:9 - error TS1086: An accessor cannot be declared in an ambient context.

    34     get size(): number;

               ~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/track/track.d.ts:7:9 - error TS1086: An accessor cannot be declared in an ambient context.

    7     get clicked(): Observable;

              ~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/track/track.d.ts:8:9 - error TS1086: An accessor cannot be declared in an ambient context.

    8     get hovered(): Observable;

              ~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/track/track.d.ts:9:18 - error TS1086: An accessor cannot be declared in an ambient context.

    9     abstract get pageProperty(): string;

                       ~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/track/track.d.ts:10:18 - error TS1086: An accessor cannot be declared in an ambient context.

    10     abstract get size(): number;

                        ~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/track/track.d.ts:11:18 - error TS1086: An accessor cannot be declared in an ambient context.

    11     abstract get offset(): number;

                        ~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/track/track.d.ts:12:9 - error TS1086: An accessor cannot be declared in an ambient context.

    12     get clientRect(): ClientRect;

               ~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/track/track.directive.d.ts:7:9 - error TS1086: An accessor cannot be declared in an ambient context.

    7     get pageProperty(): string;

              ~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/track/track.directive.d.ts:8:9 - error TS1086: An accessor cannot be declared in an ambient context.

    8     get offset(): number;

              ~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/track/track.directive.d.ts:9:9 - error TS1086: An accessor cannot be declared in an ambient context.

    9     get size(): number;

              ~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/track/track.directive.d.ts:16:9 - error TS1086: An accessor cannot be declared in an ambient context.

    16     get pageProperty(): string;

               ~~~~~~~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/track/track.directive.d.ts:17:9 - error TS1086: An accessor cannot be declared in an ambient context.

    17     get offset(): number;

               ~~~~~~

    node_modules/ngx-scrollbar/lib/scrollbar/track/track.directive.d.ts:18:9 - error TS1086: An accessor cannot be declared in an ambient context.

    18     get size(): number;

               ~~~~

    node_modules/ngx-scrollbar/lib/utils/ng-attr.directive.d.ts:6:9 - error TS1086: An accessor cannot be declared in an ambient context.

    6     set ngAttr(attrs: NgScrollbarState);

              ~~~~~~

    node_modules/ngx-scrollbar/lib/utils/resize-sensor.directive.d.ts:20:9 - error TS1086: An accessor cannot be declared in an ambient context.

    20     get debounce(): number;

               ~~~~~~~~

    node_modules/ngx-scrollbar/lib/utils/resize-sensor.directive.d.ts:21:9 - error TS1086: An accessor cannot be declared in an ambient context.

    21     set debounce(value: number);

               ~~~~~~~~

    node_modules/ngx-scrollbar/lib/utils/resize-sensor.directive.d.ts:24:9 - error TS1086: An accessor cannot be declared in an ambient context.

    24     get disabled(): any;

               ~~~~~~~~

    node_modules/ngx-scrollbar/lib/utils/resize-sensor.directive.d.ts:25:9 - error TS1086: An accessor cannot be declared in an ambient context.

    25     set disabled(value: any);

               ~~~~~~~~

    node_modules/ngx-scrollbar/smooth-scroll/smooth-scroll-manager.d.ts:8:17 - error TS1086: An accessor cannot be declared in an ambient context.

    8     private get _w();

                      ~~

    node_modules/ngx-scrollbar/smooth-scroll/smooth-scroll-manager.d.ts:12:17 - error TS1086: An accessor cannot be declared in an ambient context.

    12     private get _now();

                       ~~~~

    src/app/app.module.ts:19:29 - error TS2307: Cannot find module 'ngx-bootstrap'.

    19 import { AlertModule } from 'ngx-bootstrap';

                                   ~~~~~~~~~~~~~~~

    src/app/views/application/email/index/index.component.ts:3:42 - error TS2307: Cannot find module 'ngx-bootstrap'.

    3 import {BsModalRef, BsModalService} from 'ngx-bootstrap';

                                               ~~~~~~~~~~~~~~~

    src/app/views/core/core.module.ts:18:29 - error TS2307: Cannot find module 'ngx-bootstrap'.

    18 import { AlertModule } from 'ngx-bootstrap';

  2. Generic placeholder image

    Swap replied

    Hi ionel stefanuca,

    Can you share screenshot of error.

    Thanks & Regards,
    - Swaroop Suthar
Recent Tickets
[ERROR] Failed to import ... 1 month ago on August 22, 2020 7:19 AM Side Bar scrolling proble... 2 days ago on September 20, 2020 9:29 PM video notification opens ... 2 days ago on September 20, 2020 10:23 AM Showing error messages on... 3 days ago on September 19, 2020 12:02 PM Unable to authenticate... 3 days ago on September 19, 2020 9:37 AM Laravel demo 4 days ago on September 18, 2020 7:46 AM HomeActivity Getting "U... 4 days ago on September 18, 2020 6:06 AM IOS App rejected: Perform... 5 days ago on September 17, 2020 12:21 PM Maintenance & Coming Soon... 5 days ago on September 17, 2020 3:21 AM On some Iphone and iPad p... 6 days ago on September 16, 2020 3:17 PM