EddyVerbruggen / EddyVerbruggen/nativescript-printer

ERROR in ./node_modules/nativescript-printer/printer.android.js 2:0-56

Open
#36 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
38
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used [patch-package](https://github.com/ds300/patch-package) to patch `nativescript-printer@3.0.0` for the project I'm working on.

Here is the diff that solved my problem:

```diff
diff --git a/node_modules/nativescript-printer/printer.android.js b/node_modules/nativescript-printer/printer.android.js
index 3499776..52053d2 100644
--- a/node_modules/nativescript-printer/printer.android.js
+++ b/node_modules/nativescript-printer/printer.android.js
@@ -1,5 +1,5 @@
import { Application, Frame } from "@nativescript/core";
-import * as utils from "@nativescript/core/utils/utils";
+import * as utils from "@nativescript/core/utils";
const PrintPackageName = useAndroidX() ? global.androidx.print : android.support.v4.print;
function useAndroidX() {
return global.androidx && global.androidx.appcompat;
```

This issue body was [partially generated by patch-package](https://github.com/ds300/patch-package/issues/296).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.