NativeScript / NativeScript/plugins

[@nativescript/google-signin] Interfaces is not defined in worker

Open
#566 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
206
Forks
123
Avg merge
2d 1h
Merged PRs (30d)
1

Description

Hi, I have a problem when I import this file in worker, the Interfazes is not defined
https://github.com/NativeScript/plugins/blob/main/packages/google-signin/index.android.ts#L254

I imported globals but not help
the output .js code is

ClickListenerImpl = __decorate([
        Interfaces([android.view.View.OnClickListener]),
        __metadata("design:paramtypes", [typeof (_a = typeof WeakRef !== "undefined" && WeakRef) === "function" ? _a : Object])
    ], ClickListenerImpl)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in packages/google-signin/index.android.ts at the referenced line around the ClickListenerImpl declaration, then compare the generated JavaScript shown in the report when it is imported from a worker. Reproduce the worker import and trace why Interfaces is unavailable there; done means the worker import no longer produces the undefined-Interfaces error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.