NativeScript / NativeScript/plugins
[@nativescript/google-signin] Interfaces is not defined in worker
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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