NativeScript / NativeScript/nativescript-cli
ERROR in node_modules/nativescript-drop-down/drop-down.d.ts
未關閉
還沒有人認領這個 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
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 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