Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not found: Error: Can't resolve 'nativescript-permissions' #10556

Open
3 tasks done
AAlex-11 opened this issue May 28, 2024 · 1 comment
Open
3 tasks done

Module not found: Error: Can't resolve 'nativescript-permissions' #10556

AAlex-11 opened this issue May 28, 2024 · 1 comment
Labels
bug-pending-triage Reported bug, pending triage to confirm.

Comments

@AAlex-11
Copy link

AAlex-11 commented May 28, 2024

Issue Description

I try to use filePicker https://github.com/prabudevarrajan/nativescript-plugin-filepicker
and receive error - Module not found: Error: Can't resolve 'nativescript-permissions' in '...'
but https://www.npmjs.com/package/nativescript-permissions is disabled.

I don't know responsibility area - who exactly can fix this bug, and how is possible to fix absent this module, but my App_Resources\Android\src\main\AndroidManifest.xml has relevant lines for permission

 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
 <uses-permission android:name="android.permission.INTERNET"/>
 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

Any ideas?

Reproduction

just install https://github.com/prabudevarrajan/nativescript-plugin-filepicker and try - is it working?

Relevant log output (if applicable)

assets by status 18.7 MiB [emitted]
  asset vendor.js 18 MiB [emitted] (name: vendor) (id hint: defaultVendor)
  asset bundle.js 604 KiB [emitted] (name: bundle)
  asset runtime.js 88.6 KiB [emitted] [compared for emit] (name: runtime)
Entrypoint bundle 18.7 MiB = runtime.js 88.6 KiB vendor.js 18 MiB bundle.js 604 KiB
runtime modules 25.4 KiB 13 modules
orphan modules 461 bytes [orphan] 5 modules
modules by path ./node_modules/ 5.72 MiB
  javascript modules 5.46 MiB 588 modules
  json modules 273 KiB
    modules by path ./node_modules/mdn-data/css/*.json 242 KiB 3 modules
    modules by path ./node_modules/css-tree/ 30.7 KiB 2 modules
modules by path ./src/ 204 KiB
  modules by path ./src/app/ 81.7 KiB 16 modules
  modules by path ./src/*.ts 4.76 KiB
    ./src/polyfills.ts 545 bytes [built] [code generated]
    ./src/main.ts 4.23 KiB [built] [code generated]
  ./src/app.css 118 KiB [built] [code generated]
external "~/package.json" 42 bytes [optional] [built] [code generated]

ERROR in ./node_modules/@prabudevarrajan/filepicker/index.android.js 3:0-56
Module not found: Error: Can't resolve 'nativescript-permissions' in 'E:\NativeScript\...\node_modules\@prabudevarrajan\filepicker'

Environment

"dependencies": {
"@angular/animations": "~16.2.0",
"@angular/common": "~16.2.0",
"@angular/compiler": "~16.2.0",
"@angular/core": "~16.2.0",
"@angular/forms": "~16.2.0",
"@angular/platform-browser": "~16.2.0",
"@angular/platform-browser-dynamic": "~16.2.0",
"@angular/router": "~16.2.0",
"@nativescript-community/arraybuffers": "^1.1.5",
"@nativescript-community/ui-drawer": "^0.1.27",
"@nativescript-community/ui-svg": "^0.1.33",
"@nativescript/angular": "^16.0.0",
"@nativescript/core": "~8.6.0",
"@nativescript/secure-storage": "^3.0.3",
"@nativescript/theme": "~3.0.2",
"@prabudevarrajan/filepicker": "^2.0.0",
"nativescript-clipboard": "^2.1.1",
"platform": "^1.3.6",
"rxjs": "~7.8.0",
"zone.js": "~0.13.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "~16.2.0",
"@angular/compiler-cli": "~16.2.0",
"@nativescript/android": "8.6.2",
"@nativescript/preview-cli": "1.0.13",
"@nativescript/types": "~8.6.0",
"@nativescript/webpack": "~5.0.18",
"@ngtools/webpack": "~16.2.0",
"@types/platform": "^1.3.6",
"typescript": "~5.1.6"
},

Please accept these terms

@AAlex-11 AAlex-11 added the bug-pending-triage Reported bug, pending triage to confirm. label May 28, 2024
@AAlex-11
Copy link
Author

I try to add deprecated module https://www.npmjs.com/package/nativescript-permissions and receive error

 "android.permission.READ_EXTERNAL_STORAGE": false

I use for debugging API 30 Android 11. Please, any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-pending-triage Reported bug, pending triage to confirm.
Projects
None yet
Development

No branches or pull requests

1 participant