ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Module has no exported member 'Location Accuracy'

Open junaidahmed93 opened this issue 10 years ago • 6 comments

Hello everyone, I am getting error while importing LocationAccuracy from ionic native Module has no exported member 'Location Accuracy' I have already installed the plugin. Is there any solution?

junaidahmed93 avatar Oct 03 '16 12:10 junaidahmed93

Can you share the code that is failing?

manucorporat avatar Oct 03 '16 12:10 manucorporat

Following this code snippet from IONIC 2 native

import { LocationAccuracy } from 'ionic-native';

LocationAccuracy.canRequest().then((canRequest: boolean) => {

if(canRequest) { // the accuracy option will be ignored by iOS LocationAccuracy.request(LocaitonAccuracy.REQUEST_PRIORITY_HIGH_ACCURACY).then( () => console.log('Request successful'), error => console.log('Error requesting location permissions', error) ); }

});

junaidahmed93 avatar Oct 03 '16 12:10 junaidahmed93

Can you remove the node_modules folder and: npm install? let me know if that fixed the issue

manucorporat avatar Oct 03 '16 12:10 manucorporat

I have re-installed node_modules after removing previous one, but still no luck Error is same

junaidahmed93 avatar Oct 03 '16 12:10 junaidahmed93

This issue was moved to driftyco/ionic-native#625

jgw96 avatar Oct 03 '16 14:10 jgw96

Hello, thanks for opening an issue with us! Because this is an Ionic native related issue I have moved this issue to the appropriate repo. Thanks!

jgw96 avatar Oct 03 '16 14:10 jgw96