NativeScript / NativeScript/nativescript-cli

ERROR in node_modules/nativescript-drop-down/drop-down.d.ts

Open
#5,203 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Environment

  • CLI: 5.4.2
  • Cross-platform modules:
  • Android Runtime:
  • iOS Runtime:
  • Plugin(s): nativescript-angular

Describe the bug
When I install the plugin using Nativescript Angular, I get these errors on drop-down.d.ts file.


ERROR in node_modules/nativescript-drop-down/drop-down.d.ts(16,33): error TS2307: Cannot find module 'data/observable-array'.
node_modules/nativescript-drop-down/drop-down.d.ts(17,62): error TS2307: Cannot find module 'ui/core/view'.
node_modules/nativescript-drop-down/drop-down.d.ts(18,30): error TS2307: Cannot find module 'ui/gestures/gestures'.
node_modules/nativescript-drop-down/drop-down.d.ts(19,29): error TS2307: Cannot find module 'ui/list-picker'.
node_modules/nativescript-drop-down/drop-down.d.ts(20,31): error TS2307: Cannot find module 'ui/text-base'.

I fix them manually to make it work, adding the prefix tns-core-modules/ to each one of the paths.

I will be grateful if you update your plugin code to avoid to be fixing it manually 🙂

Kind regards,
Génesis Salazar

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

The failing declarations are in node_modules/nativescript-drop-down/drop-down.d.ts, with the missing imports listed in the issue. Reproduce the problem by installing the plugin with NativeScript Angular and compiling; done means the declarations compile without manual edits and the reported TS2307 errors are gone.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
cli
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.