Closed LeeviKopakkala closed 5 years ago
"dependencies": { "@angular/animations": "~7.1.0", "@angular/common": "~7.1.0", "@angular/compiler": "~7.1.0", "@angular/core": "~7.1.0", "@angular/forms": "~7.1.0", "@angular/http": "~7.1.0", "@angular/platform-browser": "~7.1.0", "@angular/platform-browser-dynamic": "~7.1.0", "@angular/router": "~7.1.0", "moment": "^2.24.0", "moment-timezone": "^0.5.25", "nativescript-angular": "~7.1.0", "nativescript-drop-down": "^5.0.0", "nativescript-fancyalert": "^3.0.6", "nativescript-floatingactionbutton": "^5.0.3", "nativescript-laravel-echo": "^1.1.0", "nativescript-localstorage": "^2.0.0", "nativescript-modal-datetimepicker": "^1.2.0", "nativescript-theme-core": "~1.0.4", "nativescript-ui-calendar": "^3.10.0", "nativescript-ui-listview": "^6.0.0", "nativescript-ui-sidedrawer": "^6.0.0", "nativescript-uuid": "0.0.1", "reflect-metadata": "~0.1.12", "rxjs": "~6.3.0", "tns-core-modules": "^5.3.1", "zone.js": "~0.8.26" }, "devDependencies": { "@angular/compiler-cli": "~7.1.0", "@nativescript/schematics": "~0.5.0", "@ngtools/webpack": "~7.1.0", "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", "lazy": "1.0.11", "nativescript-dev-sass": "^1.7.0", "nativescript-dev-typescript": "~0.7.0", "nativescript-dev-webpack": "~0.19.0" },
In Nativescript Angular:
Project doesn't compile due: Expected 0 arguments, but got 1.ts(2554) when trying to create new TnsEcho.
Expected 0 arguments, but got 1.ts(2554)
import { TnsEcho } from 'nativescript-laravel-echo'; const options = { broadcaster: 'pusher', headers: { auth: { 'Auth': headerString } } }; this.Echo = new TnsEcho(options); // Here: Expected 0 arguments, but got 1.ts(2554)
I'm sorry at the moment it's not compatible with Angular ☹
@LeeviKopakkala try add // @ts-ignore like this:
// @ts-ignore
// @ts-ignore const echo = new TnsEcho(this.options);
here work only when i add ts-ignore
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
In Nativescript Angular:
Project doesn't compile due:
Expected 0 arguments, but got 1.ts(2554)
when trying to create new TnsEcho.Is there any code involved?