Quantcast
Channel: Ionic Forum - Latest topics
Viewing all 70918 articles
Browse latest View live

BlinkID Error - Native: tried calling BlinkId.BarcodeRecognizer, but the BlinkId plugin is not installed

$
0
0

I have an Ionic 4 project which I want to integrate the BlinkID plugin to scan PDF417 barcodes. I installed the BlinkID plugin following instructions from the Ionic website and added the snippet to scan barcodes. However I get an error on the line where we call the BarcodeRecognizer function.

const barcodeRecognizer = new this.blinkId.BarcodeRecognizer();
barcodeRecognizer.scanPdf417 = true;

The error from XCode console is;
WARN: Native: tried calling BlinkId.BarcodeRecognizer, but the BlinkId plugin is not installed.
WARN: Install the BlinkId plugin: 'ionic cordova plugin add blinkid-cordova’

Can you please assist.

1 post - 1 participant

Read full topic


Ion-col and button position

$
0
0

Hey,

I am trying to position a ion-button to the right, but all I am getting is the button is right-ish.

I´ve got the following code:

<ion-footer>
            <ion-row >
                <ion-col center text-center >
                    <button item-start (click)="favorite(thumbs.get(item))">
                        <ion-icon *ngIf="!thumbs.get(item).favorite" name="star-outline"></ion-icon>
                        <ion-icon *ngIf="thumbs.get(item).favorite" name="star"></ion-icon>
                    </button>
                </ion-col>

                <ion-col center text-center >
                    <button  (click)="presentPopover($event,thumbs.get(item))">
                        <ion-icon name="ellipsis-vertical"></ion-icon>
                        <div>Add to Story</div>
                    </button>
                </ion-col>

            </ion-row>
        </ion-footer>

Driving me nuts.

1 post - 1 participant

Read full topic

Change PreviewAnyFile default file opening app

$
0
0

Hello.

When using PreviewAnyFile for the first time from my app, before opening the file, the system ask to use an application to open it (once or every time).

Depending of the file mime, several applications can be used. And some application doesn’t support some mime type.

My issue is when an application is set to be the default application that open file, this defaults application will be used to display all type of files.
If the file isn’t compatible for the app, once the app is opened, the app will enter in error.

I would like to know if their is a way to change this default applications once it’s set.

Regards.

1 post - 1 participant

Read full topic

Mulitple video tags slows app drastically

$
0
0

Hi,
I’m writing an multimédia ebook reader on Ionic 5 / Angular 8. I have this simple video component with custom controls :

<div class="video-player">
  <video #video [src]="content.src" controls controlslist="nodownload" disablePictureInPicture playsinline preload="none">
  </video>
  <div class="video-actions">
    <div class="video-actions-left">
      <ion-icon name="logo-closed-captioning" (click)="captions()"></ion-icon>
    </div>
    <div class="video-actions-center">
      <ion-icon [name]="playing ? 'pause':'play'" (click)="play()"></ion-icon>
    </div>
    <div class="video-actions-right">
      <ion-icon name="expand" (click)="fullscreen()"></ion-icon>
    </div>
  </div>
</div>
import {Component, ElementRef, Input, OnInit, ViewChild} from '@angular/core';
import {Video} from '../../../classes/contents/video';

@Component({
    selector: 'video-player',
    templateUrl: './video.component.html',
    styleUrls: ['./video.component.scss'],
})
export class VideoComponent implements OnInit {

    @ViewChild('video', {static: true}) videoRef: ElementRef;

    @Input() content: Video;

    video: HTMLVideoElement;
    videoSrc: string;
    playing = false;

    constructor(
        public toastController: ToastController
    ) {}

    ngOnInit() {
        this.video = this.videoRef.nativeElement;
        this.video.addEventListener('play', (event) => {
            this.playing = true;
        });
        this.video.addEventListener('pause', (event) => {
            this.playing = false;
        });
    }

    play() {
        if (this.video.paused) {
            this.video.play();
        } else {
            this.video.pause();
        }
    }
}

This takes forever to load and the app kind of freezes for a moment (~10s) :

If i remove the [src] attribute it’s much quicker (~1s) :

Any ideas why and how to fix ?

The videos (4 of them) are locally stored (/assets) and I set preload=none to prevent fetching data for each videos.

1 post - 1 participant

Read full topic

ProcessNextHanlder does not work

$
0
0

Hi all,

I’ve stumbled upon an issue with processNextHandler parameter for the hardware back button callback.

(parameter) processNextHandler: any
Argument of type '(processNextHandler: any) => void' is not assignable to parameter of type '() => void | Promise<any>'

Do you have any idea what might be causing this and how to resolve it?

1 post - 1 participant

Read full topic

Animation speeds on iOS 14

$
0
0

I installed the iOS beta to check my app. Everything works fine, but the page transitions are are half the speed they were, if not slower. The page titles pop in in a really strange way.

I know it’s only a beta, but has anyone else seen this yet?

1 post - 1 participant

Read full topic

Ionic 4 Angular 8 handle server side user redirection

$
0
0

My express server is redirecting the user to an angular page after payment success. Like below

res.redirect('http://localhost:8100/order-success')

I have jwt auth in my app. So if the user is logged in then I redirect the user to url tabs/tab1 else redirects to the login page.

So when my express server redirects the user to order-success page, the logic in jwt auth takes over and the user gets redirected to tabs/tab1 page. But I want the user to be redirected to order-success page. What is the solution?

Thank you in advance

Here is code

authentication.service.ts

export class AuthenticationService {

  authenticationState = new BehaviorSubject(false);

  constructor(private storageservice: StorageService, private plt: Platform, private router: Router) {

    this.plt.ready().then(() => {
      this.checkToken();
    });
   }

   checkToken() {
    this.storageservice.get('token').then(res => {
      if (res) {
        this.authenticationState.next(true);
      }
    })
  }

  login(val) {

    console.log("login")
    return this.storageservice.set('token', val).then(() => {
      this.authenticationState.next(true);
    });
  }
 
  logout() {
    return this.storageservice.clear().then(() => {
      this.authenticationState.next(false);

      let navigationExtras : NavigationExtras = {
        state : {
          logout : "yes"
        }
      }
      this.router.navigate(['home'], navigationExtras)

    });
  }
 
  isAuthenticated() {
    return this.authenticationState.value;
  }

}

app.component.ts

this.authenticationService.authenticationState.subscribe(state => {
    if (state) {         

      console.log(state) // state is true
      this.router.navigate(['tabs/tab1']);
    } 
    else {

      console.log(state) // state is false
      this.router.navigate(['home']);
    }
  });

1 post - 1 participant

Read full topic

Ionic Icon QR-Code is broken on Chrome

$
0
0

Hello,

we update to Ionic 5 last month.
We use a barcode-scanner an therefor an ionic-button with ionic-icon “qr-code”.

In Chrome there a two of 3 locations in our app where the icon is broken:
qr-icon-broken
In Firefox there are no issues.

We use it like this:

<ng-container *ngIf="(qrCodeConfigKey$ | async) === 'true'">
  <ion-buttons>
    <ion-button slot="icon-only"
      class="barcode-scanner-button-component"
      (click)="showBarcodeScannerModal()">
      <ion-icon name="qr-code-outline" title="Barcode-Scanner"></ion-icon>
    </ion-button>
  </ion-buttons>
</ng-container>

Any ideas somebody?

1 post - 1 participant

Read full topic


Firebase Notification opens automatically

$
0
0

I am using Firebase X for receiving notifications with ionic 5
I have 2 questions

First One:
when the app is in foreground and received a notification , The notification has opened automatically without clicking the notification
what should I do to prevent this action ??

Second One:
Navigating with parameters to the same page but with different parameters doesn’t change the page’s content
so how to change the page’s content with the new parameters

1 post - 1 participant

Read full topic

Update badge in background?

$
0
0

Hi there,

I’m trying to update the badge on my app’s icon to a number depending on how many new messages my app has.
I’ve tried doing this through push notifications but this didn’t seem to work for capacitor and capacitor-fcm.
Or perhaps I did something wrong there.
Not to mention, my messages aren’t always sent with notifications. Sometimes a message is placed without notification, and in those cases the badge also needs to be updated, reflecting the amount of new messages.

In any case, what i’m trying to do is use:

To fetch information in the background from my api to see how many new messages there are since last time you had the app open.

It is then trying to use:

In order to set the badge when the app is in the background.

Setting the badge when the app is in the foreground works, but I can’t seem to find a way to do this while the app is in the background. AKA when using cordova-background-fetch.

Does anyone know of a good way to get this to work on ionic 4? Or at least how this should be handled?

Please let me know,

1 post - 1 participant

Read full topic

Cordova/Android Gradle error: Failed to notify project evaluation listener

$
0
0

I’ve come across an issue with the default configuration for the android platform that’s preventing me from running my app without having to manually tweak build.gradle inside platforms/android. I already posted a bug report with details (without realizing this isn’t a bug so much as a support issue), so to save time I’ll just copy-pasta the Markdown below.

Essentially, is there something I have configured incorrectly so that build.gradle is auto-generated with the wrong Android Gradle plugin version? It’d be nice if everything would “just work” after ionic cordova platform add android, without me having to edit something manually.


Ionic version:

4.x
5.x

Current behavior:

When attempting to run a new app on Android (using ionic cordova run android, where the android platform has not already been added), the cordova.cmd build android step fails with this error (snippet of relevant logs follow):

> cordova.cmd build android --device
[cordova]
[cordova] FAILURE: Build failed with an exception.
[cordova]
[cordova] * What went wrong:
[cordova] A problem occurred configuring project ':app'.
[cordova] > Failed to notify project evaluation listener.
[cordova]    > org.gradle.api.file.ProjectLayout.directoryProperty(Lorg/gradle/api/provider/Provider;)Lorg/gradle/api/file/DirectoryProperty;
[cordova]
[cordova] * Try:
[cordova] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[cordova]
[cordova] * Get more help at https://help.gradle.org
[cordova]
[cordova] BUILD FAILED in 7s

Expected behavior:

This error should not occur; the project should build and run successfully instead.

Steps to reproduce:

  1. Start a new Ionic app (ionic start bug-demo blank --type=angular --cordova)
  2. Build & run on a device/emulator (ionic cordova run android)
  3. The previous command should fail with the error listed above.

Related code:

N/A; simply the code generated by ionic start is enough to reproduce the bug.

Other information:

I have followed this StackOverflow answer before to solve the problem. Going off that post, it seems the only issue is the Android Gradle plugin version being incompatible with my Gradle version. Making the following change in platforms/android/build.gradle will fix the problem for me:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        google()
        jcenter()
    }

    dependencies {
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files

-        classpath 'com.android.tools.build:gradle:3.3.0'
+        classpath 'com.android.tools.build:gradle:4.0.0'
    }
}

I replaced the auto-generated version with v4.0.0 by referencing the table on the Android Gradle Plugin release notes page (also linked in the SO answer above), since the Gradle version in platforms/android/gradle/wrapper/gradle-wrapper.properties is v6.2.2.

The issue may simply be that the auto-generated plugin version is incompatible with the auto-generated Gradle version.

Output of platforms\android\gradlew -v, if it’s helpful:

------------------------------------------------------------
Gradle 6.2.2
------------------------------------------------------------

Build time:   2020-03-04 08:49:31 UTC
Revision:     7d0bf6dcb46c143bcc3b7a0fa40a8e5ca28e5856

Kotlin:       1.3.61
Groovy:       2.5.8
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          1.8.0_251 (Oracle Corporation 25.251-b08)
OS:           Windows 10 10.0 amd64

As I wrote this issue, I realized this may not be a problem with Ionic, but Cordova. :grimacing: Ask me and I’ll move the issue to their world if it’s irrelevant in this repo.

Ionic info:

Ionic:

   Ionic CLI                     : 6.10.1
   Ionic Framework               : @ionic/angular 5.2.2
   @angular-devkit/build-angular : 0.901.9
   @angular-devkit/schematics    : 9.1.9
   @angular/cli                  : 9.1.9
   @ionic/angular-toolkit        : 2.2.0

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.1.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 4 other plugins)

Utility:

   cordova-res (update available: 0.15.1) : 0.14.0
   native-run                             : 1.0.0

System:

   Android SDK Tools : 26.1.1
   NodeJS            : v12.14.1
   npm               : 6.13.4
   OS                : Windows 10

1 post - 1 participant

Read full topic

Push Notification get push data after event click

$
0
0

Hi.
I’m trying to get the Payload Data from a click of push notification, but for some reason android no found any listeners for pushNotificationActionPerformed.

Server code - Push Payload (the push is sent with cURL lib from PHP, and i want to access the content and id fields) :

$fields = array(
            "to" => $token,
            "notification" => array (
                "title" => $title,
                "body" => $body
            ),
            "data" => array (
                'type' => $contentType,
                'id' => $contentId
            )
        );

In the Ionic Code:

PushNotifications.requestPermission().then( result => {
  if (result.granted) {
    PushNotifications.register();
  }
});

PushNotifications.addListener('registration',
  async (token: PushNotificationToken) => {
    console.log("device registration");
});

PushNotifications.addListener('registrationError',
  (error: any) => {
    console.log('Error on registration: ' + JSON.stringify(error));
});

PushNotifications.addListener('pushNotificationReceived',
  (notification: PushNotification) => {
    alert('Push received: ' + JSON.stringify(notification));
  }
);

PushNotifications.addListener('pushNotificationActionPerformed',
  (notification: PushNotificationActionPerformed) => {
    alert('Push action performed: ' + JSON.stringify(notification));
  }
);

If for some reason this is not the right direction for my case, feel free to say.

Thanks in advance

1 post - 1 participant

Read full topic

Ion-select inside custom component

$
0
0

I have a custom component to handle various kinds of form inputs, such as ion-input, ion-checkbox, ion-select, ion-textarea, etc.

I’ve implemented the ControlValueAccessor and it allows me to embed it inside reactive forms without any problem. the value of the control is updated when the custom component is interacted with.

However, this only works with ion-input and ion-textarea. it doesn’t correctly work with ion-select or ion-datetime, even though I’ve implemented it with the same pattern as ion-input and ion-textarea.

Any ideas?

1 post - 1 participant

Read full topic

Search Filter with Ionic

Capacitor - Google Analytics install script correct?

$
0
0

Wondering because I blindly copied the install script from the documentation page into my terminal.

The capacitor install commands on the documentation page list the cordova plugin to install. Is this correct?

npm install cordova-plugin-firebase-analytics
npm install @ionic-native/firebase-analytics
ionic cap sync

1 post - 1 participant

Read full topic


[v4] Ion-Slides appears to ignore the "effect" option

$
0
0

I’m trying to use the fade transition effect with the ion-slides component, but the option seems to be ignored when I do.

Ion-slides uses SwiperJS under the hood, with the documentation even referring to the swiperjs docs when referencing the options attribute.

These options include an “effect” parameter that enable different transition animations (swipe, cube, fade, etc).

When I try to use effect: "fade", nothing seems to happen. You can see for yourself in this test repository where I have added ion-slides to a starter application. The options I’m using are pulled directly from SwiperJS’s fade effect demo, seen working here.

If this is intentional, it should be clarified in Ionic’s documentation which options are actually usable and which are disabled. If it’s a bug, I hope that v4 is still receiving support.

[0] https://github.com/AndruC/ionic-slide-fade-test
[1] https://stackblitz.com/edit/swiper-demo-22-fade-effect?file=index.html

1 post - 1 participant

Read full topic

How to change response headers for webview ios

[Ionic 5] ion-select Objects as Values not working

$
0
0

Ionic 5, following the documentation for ion-select “Objects as Values”. The example is straight up broken.

Page html

      <ion-select [compareWith]="compareWith">
        <ion-select-option *ngFor="let category of this.categories">{{category.name}}</ion-select-option>
      </ion-select>

Category.ts

export class Category {
    guid: string;
    name: string;

    constructor(guid, name) {
        this.guid = guid;
        this.name = name;
    }
}

Page.ts

export class TaskPage implements OnInit {
    categories: Array<Category>;

  constructor() { }

  ngOnInit() {
    this.categories = new Array<Category>();
    this.categories.push(new Category("1", "Test 1"));
    this.categories.push(new Category("2", "Test 2"));
  }

  compareWithFn = (o1, o2) => {
    return o1 && o2 ? o1.guid === o2.guid : o1 === o2;
  };

  compareWith = this.compareWithFn;
}

First off, I had to change the “compareWith = compareWithFn” to include the “this.”

Second, and more importantly, when I select an option, it doesn’t display what I selected and then if I try to select again, every option is selected.

This is after I selected option “Test 2”

ss

1 post - 1 participant

Read full topic

I can't run my ionic-angular app: 3.6.0. can anybody help me?

$
0
0

Could someone share the package.json of an ionic-angular app: 3.6.0 working?
Could you also tell me how I can easily discover the dependencies required for a given version of Ionic?

My package.json

{
  "name": "test-project",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "4.1.3",
    "@angular/compiler": "4.1.3",
    "@angular/compiler-cli": "4.1.3",
    "@angular/core": "4.1.3",
    "@angular/forms": "4.1.3",
    "@angular/http": "4.1.3",
    "@angular/platform-browser": "4.1.3",
    "@angular/platform-browser-dynamic": "4.1.3",
    "@ionic-native/app-version": "^4.4.2",
    "@ionic-native/camera": "^4.4.2",
    "@ionic-native/core": "3.12.1",
    "@ionic-native/geolocation": "^4.4.2",
    "@ionic-native/native-geocoder": "^4.4.2",
    "@ionic-native/splash-screen": "3.12.1",
    "@ionic-native/status-bar": "^3.12.1",
    "@ionic/storage": "^2.1.3",
    "@types/pouchdb": "6.3.0",
    "cordova-ios": "4.5.4",
    "cordova-plugin-add-swift-support": "^1.7.1",
    "cordova-plugin-app-version": "^0.1.9",
    "cordova-plugin-camera": "^2.4.1",
    "cordova-plugin-compat": "^1.2.0",
    "cordova-plugin-console": "^1.1.0",
    "cordova-plugin-device": "^1.1.7",
    "cordova-plugin-geolocation": "^2.4.3",
    "cordova-plugin-nativegeocoder": "^2.0.5",
    "cordova-plugin-splashscreen": "^4.1.0",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-sqlite-storage": "^2.3.3",
    "intl": "^1.2.5",
    "ionic-angular": "3.6.0",
    "ionic-img-viewer": "^2.6.1",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionic2-rating": "^1.2.2",
    "ionicons": "3.0.0",
    "moment": "^2.20.1",
    "node-sass": "^4.7.2",
    "pouchdb": "^6.3.4",
    "run": "1.4.0",
    "rxjs": "5.4.0",
    "sw-toolbox": "3.6.0",
    "ts-md5": "^1.2.2",
    "zone.js": "0.8.12"
  },
  "devDependencies": {
    "@angular/cli": "^1.5.0",
    "@ionic/app-scripts": "^3.1.11",
    "cordova": "^8.0.0",
    "ionic": "3.19.1",
    "typescript": "^2.3.4"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-console": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-whitelist": {},
      "ionic-plugin-keyboard": {},
      "cordova-sqlite-storage": {},
      "cordova-plugin-camera": {
        "CAMERA_USAGE_DESCRIPTION": "Utilizar Camera",
        "PHOTOLIBRARY_USAGE_DESCRIPTION": "Utilizar Galeria Camera"
      },
      "cordova-plugin-geolocation": {
        "GEOLOCATION_USAGE_DESCRIPTION": "Utilizar Geolocalizacao"
      },
      "cordova-plugin-nativegeocoder": {
        "LOCATION_WHEN_IN_USE_DESCRIPTION": "Use geocoder service"
      },
      "cordova-plugin-app-version": {}
    },
    "platforms": [
      "ios",
      "browser"
    ]
  }
}

My apps for make projects

Ionic Framework: 3.6.0
Ionic App Scripts: 3.2.4
Angular Core: 4.1.3
Angular Compiler CLI: 4.1.3
Node: 6.11.1
OS Platform: Windows 10
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36

Console errors

santc@DESKTOP-ND7VRK4 MINGW64 ~/workspace-front/test-project (master)
$ ionic serve
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser - Ctrl+C to cancel
[17:26:04]  watch started ...
[17:26:04]  build dev started ...
[17:26:04]  clean started ...
[17:26:04]  clean finished in 1 ms
[17:26:04]  copy started ...
[17:26:05]  deeplinks started ...
[17:26:05]  deeplinks finished in 282 ms
[17:26:05]  transpile started ...
[17:26:10]  typescript: ...rs/santc/workspace-front/test-project/node_modules/@types/node/events.d.ts, line: 21
            '=' expected.

      L20:          function on(emitter: EventEmitter, event: string): AsyncIterableIterator<any>;
      L21:          const captureRejectionSymbol: unique symbol;

[17:26:10]  typescript: ...rs/santc/workspace-front/test-project/node_modules/@types/node/events.d.ts, line: 32
            '=' expected.

      L32:  const errorMonitor: unique symbol;

[17:26:10]  typescript: ...rs/santc/workspace-front/test-project/node_modules/@types/node/events.d.ts, line: 55
            '=' expected.

      L55:      static readonly errorMonitor: unique symbol;

[17:26:10]  typescript: ...sers/santc/workspace-front/test-project/node_modules/@types/node/repl.d.ts, line: 361
            '=' expected.

     L361:      const REPL_MODE_SLOPPY: unique symbol;

[17:26:10]  typescript: ...sers/santc/workspace-front/test-project/node_modules/@types/node/repl.d.ts, line: 367
            '=' expected.

     L367:      const REPL_MODE_STRICT: unique symbol;

[17:26:10]  typescript: ...sers/santc/workspace-front/test-project/node_modules/@types/node/util.d.ts, line: 24
            '=' expected.

      L23:      let replDefaults: InspectOptions;
      L24:      const custom: unique symbol;

[17:26:10]  typescript: ...sers/santc/workspace-front/test-project/node_modules/@types/node/util.d.ts, line: 119
            '=' expected.

     L118:  namespace promisify {
     L119:      const custom: unique symbol;

[17:26:10]  typescript: .../workspace-front/test-project/node_modules/@types/node/worker_threads.d.ts, line: 9
            '=' expected.

       L8:  const parentPort: null | MessagePort;
       L9:  const SHARE_ENV: unique symbol;
      L10:  const threadId: number;

[17:26:10]  typescript: ...rs/santc/workspace-front/test-project/node_modules/@types/node/events.d.ts, line: 21
            Cannot find name 'unique'.

      L20:          function on(emitter: EventEmitter, event: string): AsyncIterableIterator<any>;
      L21:          const captureRejectionSymbol: unique symbol;

[17:26:10]  typescript: ...rs/santc/workspace-front/test-project/node_modules/@types/node/events.d.ts, line: 21
            Cannot find name 'symbol'. Did you mean 'Symbol'?

      L20:          function on(emitter: EventEmitter, event: string): AsyncIterableIterator<any>;
      L21:          const captureRejectionSymbol: unique symbol;

[17:26:10]  typescript: ...rs/santc/workspace-front/test-project/node_modules/@types/node/events.d.ts, line: 32
            Cannot find name 'unique'.

      L32:  const errorMonitor: unique symbol;

[17:26:10]  typescript: ...rs/santc/workspace-front/test-project/node_modules/@types/node/events.d.ts, line: 32
            Cannot find name 'symbol'. Did you mean 'Symbol'?

      L32:  const errorMonitor: unique symbol;

[17:26:10]  typescript: ...rs/santc/workspace-front/test-project/node_modules/@types/node/events.d.ts, line: 55
            Cannot find name 'unique'.

      L55:      static readonly errorMonitor: unique symbol;

[17:26:10]  typescript: ...rs/santc/workspace-front/test-project/node_modules/@types/node/events.d.ts, line: 55
            Cannot find name 'symbol'. Did you mean 'Symbol'?

      L55:      static readonly errorMonitor: unique symbol;

[17:26:10]  typescript: ...sers/santc/workspace-front/test-project/node_modules/@types/node/repl.d.ts, line: 361
            Cannot find name 'unique'.

     L361:      const REPL_MODE_SLOPPY: unique symbol;

[17:26:10]  typescript: ...sers/santc/workspace-front/test-project/node_modules/@types/node/repl.d.ts, line: 361
            Cannot find name 'symbol'. Did you mean 'Symbol'?

     L361:      const REPL_MODE_SLOPPY: unique symbol;

[17:26:10]  typescript: ...sers/santc/workspace-front/test-project/node_modules/@types/node/repl.d.ts, line: 367
            Cannot find name 'unique'.

     L367:      const REPL_MODE_STRICT: unique symbol;

[17:26:10]  typescript: ...sers/santc/workspace-front/test-project/node_modules/@types/node/repl.d.ts, line: 367
            Cannot find name 'symbol'. Did you mean 'Symbol'?

     L367:      const REPL_MODE_STRICT: unique symbol;

[17:26:10]  typescript: ...sers/santc/workspace-front/test-project/node_modules/@types/node/util.d.ts, line: 24
            Cannot find name 'unique'.

      L23:      let replDefaults: InspectOptions;
      L24:      const custom: unique symbol;

[17:26:10]  typescript: ...sers/santc/workspace-front/test-project/node_modules/@types/node/util.d.ts, line: 24
            Cannot find name 'symbol'.

      L23:      let replDefaults: InspectOptions;
      L24:      const custom: unique symbol;

[17:26:10]  typescript: ...sers/santc/workspace-front/test-project/node_modules/@types/node/util.d.ts, line: 119
            Cannot find name 'unique'.

     L118:  namespace promisify {
     L119:      const custom: unique symbol;

[17:26:10]  typescript: ...sers/santc/workspace-front/test-project/node_modules/@types/node/util.d.ts, line: 119
            Cannot find name 'symbol'.

     L118:  namespace promisify {
     L119:      const custom: unique symbol;

[17:26:10]  typescript: .../workspace-front/test-project/node_modules/@types/node/worker_threads.d.ts, line: 9
            Cannot find name 'unique'.

       L8:  const parentPort: null | MessagePort;
       L9:  const SHARE_ENV: unique symbol;
      L10:  const threadId: number;

[17:26:10]  typescript: .../workspace-front/test-project/node_modules/@types/node/worker_threads.d.ts, line: 9
            Cannot find name 'symbol'.

       L8:  const parentPort: null | MessagePort;
       L9:  const SHARE_ENV: unique symbol;
      L10:  const threadId: number;

[17:26:10]  typescript: ...ce-front/test-project/node_modules/ionic-angular/components/tabs/tabs.d.ts, line: 151
            Class 'Tabs' incorrectly implements interface 'NavigationContainer'. Types of property 'parent' are
            incompatible. Type 'NavControllerBase' is not assignable to type 'NavController'. Types of property 'popTo'
            are incompatible. Type '(indexOrViewCtrl: any, opts?: NavOptions, done?: () => void) => Promise<any>' is not
            assignable to type '(page: string | Page | ViewController, params?: any, opts?: NavOptions, done?: Function)
            => Promi...'. Types of parameters 'done' and 'opts' are incompatible. Type 'NavOptions' is not assignable to
            type '() => void'.

     L151:  export declare class Tabs extends Ion implements AfterViewInit, RootNode, ITabs, NavigationContainer {
     L152:      viewCtrl: ViewController;

[17:26:10]  typescript: ...test-project/node_modules/ionic-angular/navigation/nav-controller-base.d.ts, line: 20
            Class 'NavControllerBase' incorrectly implements interface 'NavController'. Types of property 'popTo' are
            incompatible. Type '(indexOrViewCtrl: any, opts?: NavOptions, done?: () => void) => Promise<any>' is not
            assignable to type '(page: string | Page | ViewController, params?: any, opts?: NavOptions, done?: Function)
            => Promi...'. Types of parameters 'done' and 'opts' are incompatible. Type 'NavOptions' is not assignable to
            type '() => void'. Type 'NavOptions' provides no match for the signature '(): void'.

      L20:  export declare class NavControllerBase extends Ion implements NavController {
      L21:      parent: any;

[17:26:10]  typescript: C:/Users/santc/workspace-front/test-project/node_modules/rxjs/Subject.d.ts, line: 16
            Class 'Subject<T>' incorrectly extends base class 'Observable<T>'. Types of property 'lift' are
            incompatible. Type '<R>(operator: Operator<T, R>) => Observable<T>' is not assignable to type '<R>(operator:
            Operator<T, R>) => Observable<R>'. Type 'Observable<T>' is not assignable to type 'Observable<R>'. Type 'T'
            is not assignable to type 'R'.

      L16:  export declare class Subject<T> extends Observable<T> implements ISubscription {
      L17:      observers: Observer<T>[];

[17:26:10]  typescript: ...-front/test-project/node_modules/rxjs/observable/dom/WebSocketSubject.d.ts, line: 24
            Class 'WebSocketSubject<T>' incorrectly extends base class 'AnonymousSubject<T>'. Types of property 'lift'
            are incompatible. Type '<R>(operator: Operator<T, R>) => WebSocketSubject<R>' is not assignable to type
            '<R>(operator: Operator<T, R>) => Observable<T>'. Type 'WebSocketSubject<R>' is not assignable to type
            'Observable<T>'. Types of property 'operator' are incompatible. Type 'Operator<any, R>' is not assignable to
            type 'Operator<any, T>'. Type 'R' is not assignable to type 'T'.

      L24:  export declare class WebSocketSubject<T> extends AnonymousSubject<T> {
      L25:      url: string;

[17:26:10]  dev server running: http://localhost:8100/

[OK] Development server running!
     Local: http://localhost:8100
     External: http://192.168.0.77:8100, http://192.168.56.1:8100, http://192.168.128.24:8100
     DevApp: Teste@8100 on DESKTOP-ND7VRK4

[17:26:10]  copy finished in 6.18 s
[17:26:11]  watch ready in 6.74 s

1 post - 1 participant

Read full topic

What is STAX

Viewing all 70918 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>