Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Nativesctipt geolocation cant resolve platform #283

Open
bogdandubyk opened this issue Dec 7, 2021 · 0 comments
Open

Nativesctipt geolocation cant resolve platform #283

bogdandubyk opened this issue Dec 7, 2021 · 0 comments

Comments

@bogdandubyk
Copy link

Issue occurring on iOS (I did not try Android)

  • CLI: 8.1.5
  • Cross-platform modules: probably 8.1.5, I do not have tns-core-modules but instead I have nativescript/core
  • Plugin(s): "dependencies": {
    "@nativescript/core": "~8.1.1",
    "@nativescript/theme": "~3.0.1",
    "nativescript-geolocation": "^5.1.0",
    "nativescript-google-maps-sdk": "^3.0.2",
    "nativescript-vue": "~2.9.0"
    },
    "devDependencies": {
    "@nativescript/android": "8.1.1",
    "@nativescript/ios": "8.1.0",
    "@nativescript/types": "~8.1.1",
    "@nativescript/webpack": "~5.0.0",
    "@types/node": "~14.6.2",
    "nativescript-vue-template-compiler": "~2.9.0",
    "typescript": "~4.3.5",
    "vue": "~2.6.12"
    }

My issue is that I'm getting error like ERROR in ./node_modules/nativescript-geolocation/geolocation.ios.js 8:15-34 Module not found: Error: Can't resolve 'platform' in '/Users/bogdandubyk/projects/locbook-app/node_modules/nativescript-geolocation' and I have a feeling that my native script is in a newer version that ad not supported by this package as I do not have ns-core-modules (instead I have nativescript/core) and do not have platform.

Sorry if the question is stupid, it's my first project on nativescript... also I found that in interned everywhere mentioned that platfrom but in my code I able to use the same functionality using nativescript/core but not in the library.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant