nativescript-community / nativescript-community/ui-pager
Error when importing transformer from @nativescript-community/ui-pager/transformers/Scale
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
Hi guys i'm getting an error when trying to register the transformer
TS2307: Cannot find module '@nativescript-community/ui-pager/transformers/Scale' or its corresponding type declarations.
14 |
15 | import { Pager } from '@nativescript-community/ui-pager';
> 16 | import transformer from '@nativescript-community/ui-pager/transformers/Scale';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 |
18 | Pager.registerTransformer('scale', transformer)
19 |
Contributor guide
No contributing guide indexed for this repository
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 by reproducing the TS2307 error from the import of @nativescript-community/ui-pager/transformers/Scale and inspect how the package exposes its transformer modules and type declarations. Done means the Scale transformer import resolves and can be passed to Pager.registerTransformer('scale', transformer).
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100