Comments (8)
I encountered the same tsc errors when trying to integrate this library. I also encountered other compile errors with TypeScript 4.4.2 regarding the below error:
error TS1243: 'async' modifier cannot be used with 'abstract' modifier.
For reference, below is the workaround patch I ended up with to compile successfully in my project (using it with patch-package):
https://gist.github.com/javascripter/7fcbbbcca2fffe6d0bbec196e082491c
Not too sure about the correct Error typing though, as there wasn't much information in the code.
from react-native-star-io10.
Star and my team have worked together towards a resolution. They provided my team a release to test and it was found to resolve the issue. I'll let them comment on when the fix will be released.
from react-native-star-io10.
I am also seeing many of these same typescript errors Property 'code' does not exist on type 'Error'
I logged the result of the nativeError
and see it does have a code
property which is a string containing what looks like a guid. So this is definitely a "typing" problem.
I also tried extending the global Error
interface in my app (like below), but that failed due some other types the extend Error with an alternate code
type.
declare global {
interface Error {
code?: string;
}
}
I think the error catch functions in the Star code need to define their own type instead of using Error
.
(cc @bandit-ibayashi )
from react-native-star-io10.
We are having the same issue.
We tried setting up our TypeScript compiler to use the skipLibCheck = true
, however, this only tells the TypeScript to skip checking the declaration files (i.e. d.ts
). The SDK doesn't have declaration files and contains just a straight uncompiled TypeScript code.
One recommendation is to compile the TypeScript before packaging. I believe this change, is related to the TypeScript language evolving (Error
typing is now more rigorous). At least then project could skipLibCheck = true
and not require the SDK to be updated so frequently.
from react-native-star-io10.
I had the same issue and I had to create a patch file to compile it.
It can be used with patch-package until it is fixed
react-native-star-io10+1.0.0.patch.zip
from react-native-star-io10.
Anyone still running into this issue should contact their local Star subsidiary if they're interested in testing a beta release that resolves this issue. For reasons I won't mention here we're not providing pre-release/beta versions through GitHub.
If you're in the US, you can contact the Integration team.
For all others, use this page to get support in your region.
from react-native-star-io10.
@ShintoTuna since you initially submitted this issue, can you verify the 1.1.0 release fixes your issue?
We'd like to close out this issue and we're pretty confident that 1.1.0 has fixed this.
from react-native-star-io10.
Since there has been no activity on this Issue for some time and we have released a version that addresses this issue, we would like to close the Issue.
If anyone continues to experience the same issue, it would be appreciated if you could submit another Issue.
from react-native-star-io10.
Related Issues (20)
- The sdk fails to discover printers over usb HOT 2
- Could not resolve all artifacts for configuration ':react-native-star-io10:classpath'. HOT 3
- No matching configuration of project :react-native-star-io10 was found.
- Why was the min android version changed from 6 to 9? HOT 3
- How to change the encoding if Chinese characters cannot be displayed. HOT 1
- Task :react-native-star-io10:bundleReleaseLocalLintAar FAILED HOT 2
- Error: StarIO10UnsupportedModelError: Not supported model TSP650II/TSP654II [REQUEST] HOT 2
- StarSpoolJobSettings not working on TSP650ii HOT 3
- Two Colour Printing with SP700 HOT 2
- what does this library accept as image or base64 ? HOT 2
- [REQUEST] Support `use_frameworks!` HOT 6
- How to build apk with `:app:assembleRelease` HOT 6
- How to connect with USB printers? HOT 4
- kotlin-gradle-plugin version required by package not recent enough for react-native 0.73.0 HOT 9
- Execution failed for task ':app:checkDebugAarMetadata' HOT 2
- Cash drawer is opening constantly HOT 3
- Issue with formatting sp700 printout, stardot HOT 2
- Example app for iOS cannot be built with Xcode14.3 HOT 1
- [UWP] Example app for Windows x86 architecture cannot be built HOT 1
- 'React/RCTBridgeModule.h' file not found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-star-io10.