NativeScript / NativeScript/nativescript-cli
ERROR in node_modules/nativescript-drop-down/drop-down.d.ts
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.1k
- Forks
- 204
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 8
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Las declaraciones que fallan están en node_modules/nativescript-drop-down/drop-down.d.ts, y las importaciones que faltan aparecen en el issue. Reproduce el problema instalando el plugin con NativeScript Angular y compilando; el trabajo estará terminado cuando las declaraciones compilen sin modificaciones manuales y desaparezcan los errores TS2307 informados.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, typescript
- Área
- cli
- Tipo de issue
- Error
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 38/100