Search code examples
angularnebular

Error to use the template @akveo/ng2-completer


I try to run an Angular app that use the template AKVeo but through the next error:

ERROR in node_modules/@akveo/ng2-completer/src/components/completer-cmp.d.ts(54,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/components/completer-cmp.d.ts(55,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/components/completer-cmp.d.ts(56,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/components/completer-cmp.d.ts(57,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/components/completer-cmp.d.ts(65,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/components/completer-cmp.d.ts(66,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/components/completer-cmp.d.ts(67,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/directives/ctr-completer.d.ts(42,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/directives/ctr-completer.d.ts(43,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/directives/ctr-completer.d.ts(44,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/directives/ctr-completer.d.ts(45,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/directives/ctr-completer.d.ts(46,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/directives/ctr-input.d.ts(27,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/directives/ctr-input.d.ts(28,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/directives/ctr-list.d.ts(32,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/directives/ctr-list.d.ts(33,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/directives/ctr-row.d.ts(13,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@akveo/ng2-completer/src/directives/ctr-row.d.ts(14,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ng2-smart-table/lib/components/tbody/tbody.component.d.ts(29,9): error TS1086: An accessor cannot be declared in an ambient context.

Some solution?


Solution

  • In tsconfig.ts add:

    "compilerOptions": {
        ...
        "skipLibCheck": true,
    }