nativescript-oauth2 icon indicating copy to clipboard operation
nativescript-oauth2 copied to clipboard

Failed to find module: "querystring", relative to: app/tns_modules/

Open andresilva-cc opened this issue 3 years ago • 3 comments

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

After migrating the project to NativeScript 8.0, the following error is generated when trying to run the app on Android: System.err: Error: com.tns.NativeScriptException: Failed to find module: "querystring", relative to: app/tns_modules/

Which platform(s) does your issue occur on?

  • Tested only on Android
  • Android 11
  • Emulator

Please, provide the following version numbers that your issue occurs with:

  • CLI: 8.0.1
  • Cross-platform modules: @nativescript/core: 8.0.1
  • Runtime(s): @nativescript/android: 8.0.0
  • Plugin(s): (look for the version numbers in the package.json file of your project and paste your dependencies and devDependencies here)
  "dependencies": {
    "@nativescript-community/ui-chart": "~1.1.24",
    "@nativescript/camera": "~5.0.8",
    "@nativescript/core": "~8.0.0",
    "@nativescript/datetimepicker": "~2.1.0",
    "@nativescript/firebase": "~11.1.3",
    "@nativescript/localize": "~5.0.4",
    "@nstudio/nativescript-loading-indicator": "~4.0.0",
    "axios": "~0.21.1",
    "moment": "~2.29.1",
    "moment-range": "~4.0.2",
    "nativescript-oauth2": "~3.0.3",
    "nativescript-photoviewer": "~2.1.5",
    "nativescript-socketio": "~3.3.1",
    "nativescript-toasty": "~3.0.0-alpha.2",
    "nativescript-ui-chart": "~8.0.2",
    "nativescript-ui-dataform": "~7.0.4",
    "nativescript-videoplayer": "~5.0.1",
    "nativescript-vue": "~2.9.0",
    "vuex": "~3.5.1"
  },
  "devDependencies": {
    "@nativescript/android": "8.0.0",
    "@nativescript/ios": "8.0.0",
    "@nativescript/webpack": "~5.0.0-beta.0",
    "eslint": "~6.8.0",
    "eslint-config-airbnb-base": "~14.1.0",
    "eslint-plugin-import": "~2.21.1",
    "eslint-plugin-vue": "~6.2.2",
    "nativescript-vue-template-compiler": "~2.8.1",
    "nativescript-worker-loader": "~0.12.1",
    "sass": "~1.26.10"
  }

Please, tell us how to recreate the issue in as much detail as possible.

  1. Install nativescript-oauth2
  2. Implement it
  3. Try to run with ns run android

Is there any code involved?

Unfortunately it is a customer project and I can't share any code

andresilva-cc avatar Apr 12 '21 03:04 andresilva-cc