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

Nativesctipt geolocation cant resolve platform #283

Description

@bogdandubyk

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions