Hi everyone , SomeOne can help me ? I am using @capacitor/device but when i Install it and i import it :
import { Device } from ‘@capacitor/device’;
I get this error :
Cannot find module ‘@capacitor/device’ or its corresponding type declarations.
Thank you so much.
Seems to be working fine. To check Create new project
ionic start deviceAPIDemo blank --capacitor --type=angular
change to project directory deviceAPIDemo
install
npm install @capacitor/device
In VSCODE it will give intelliscence
import { Device } from '@capacitor/device';