NativeScript / NativeScript/nativescript-cli

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

未关闭
#5,203 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

失败的声明位于 node_modules/nativescript-drop-down/drop-down.d.ts 中,缺少的导入已列在 issue 中。通过使用 NativeScript Angular 安装 plugin 并进行编译来复现问题;当声明无需手动编辑即可编译,并且报告的 TS2307 错误消失时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, typescript
领域
cli
Issue 类型
缺陷
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。