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

Cannot read property 'getApplicationContext' of undefined #30

Closed
Mauoanel opened this issue Jan 5, 2021 · 2 comments
Closed

Cannot read property 'getApplicationContext' of undefined #30

Mauoanel opened this issue Jan 5, 2021 · 2 comments
Milestone

Comments

@Mauoanel
Copy link

Mauoanel commented Jan 5, 2021

ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'getApplicationContext' of undefined
JS: TypeError: Cannot read property 'getApplicationContext' of undefined
JS: at new Printer (file: node_modules/nativescript-printer/printer.android.js:8:33)
JS: at new HomeComponent (file: src/app/home/home.component.ts:53:24)
JS: at createClass (file: node_modules/@angular/core/fesm5/core.js:21158:0)
JS: at createDirectiveInstance (file: node_modules/@angular/core/fesm5/core.js:21027:0)
JS: at createViewNodes (file: node_modules/@angular/core/fesm5/core.js:29387:0)
JS: at createRootView (file: node_modules/@angular/core/fesm5/core.js:29301:0)
JS: at callWithDebugContext (file: node_modules/@angular/core/fesm5/core.js:30309:0)
JS: at Object.debugCreateRootView [as createRootView] (file: node_modules/@angular/core/fesm5/core.js:29819:0)
JS: at ComponentFactory_.push.../node_modules/@angular/core/fesm5/core.js.ComponentFactory_.create

@Mauoanel
Copy link
Author

Mauoanel commented Jan 5, 2021

hi everyone, do any of you know as to why android throws the below error message?
TypeError: Cannot read property 'getApplicationContext' of undefined

@asharghi
Copy link

asharghi commented Feb 5, 2021

You get that error when you try to use version 2.0.0 of this plugin on NS6. Try installing version 1.5.0 instead

@EddyVerbruggen EddyVerbruggen added this to the 2.1.0 milestone Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants