Giter VIP home page Giter VIP logo

Comments (8)

javascripter avatar javascripter commented on June 2, 2024 1

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.

bemisguided avatar bemisguided commented on June 2, 2024 1

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.

Brendan-csel avatar Brendan-csel commented on June 2, 2024

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.

bemisguided avatar bemisguided commented on June 2, 2024

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.

yongmin86k avatar yongmin86k commented on June 2, 2024

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.

gare-bear avatar gare-bear commented on June 2, 2024

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.

gare-bear avatar gare-bear commented on June 2, 2024

@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.

bandit-ibayashi avatar bandit-ibayashi commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.