'How to depricated Fix import { Plugins } from '@capacitor/core';

Does anyone know what is the fix for the decricated import of ionic Plugins?

I'm following a tutorial and I cant proceed until I fix it.. i used plugin

npm install capacitor-face-id
Enter link description here

import { Plugins, PluginResultError } from '@capacitor/core';
const { FaceId } = Plugins;

Many thanks



Solution 1:[1]

I assume you are using Capacitor 3. This plugin seems to be compatible only with Capacitor 2 (see issue #181). In Capacitor 2 this import type is used.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 RGe