nativescript-community / nativescript-community/ui-pager

Error when importing transformer from @nativescript-community/ui-pager/transformers/Scale

Open
#54 1 comment 0 reactions 0 assignees View on GitHub

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.