Datetimepicker - Cannot find module './date-picker-field' or its corresponding type declarations.

Đang mở
#213 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
angular, typescript
Lĩnh vực
mobile-dev

Hướng nghiên cứu

Kiểm tra package đã phát hành @nativescript/datetimepicker@~2.1.9 và các tệp khai báo được nêu trong lỗi: ui/date-time-picker-fields.d.ts, ui/index.d.ts, utils/index.d.ts và utils/localization-utils.common.d.ts. Tái hiện vấn đề với các dependency TypeScript và NativeScript Angular được liệt kê, sau đó xác minh rằng các module được tham chiếu được resolve mà không có lỗi TS2307.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi,

Im upgrading the version of nativescript of my nativescript angular app.

I upgraded then from the plugin datetimepicker to @nativescript/datetimepicker

I puted the last version but i have these errors:

ERROR in node_modules/@nativescript/datetimepicker/ui/date-time-picker-fields.d.ts:2:33 - error TS2307: Cannot find module './date-picker-field' or its corresponding type declarations.

2 import { DatePickerField } from './date-picker-field';
                                  ~~~~~~~~~~~~~~~~~~~~~

ERROR in node_modules/@nativescript/datetimepicker/ui/date-time-picker-fields.d.ts:3:33 - error TS2307: Cannot find module './time-picker-field' or its corresponding type declarations.

3 import { TimePickerField } from './time-picker-field';
                                  ~~~~~~~~~~~~~~~~~~~~~

ERROR in node_modules/@nativescript/datetimepicker/ui/index.d.ts:1:33 - error TS2307: Cannot find module './date-picker-field' or its corresponding type declarations.

1 export { DatePickerField } from './date-picker-field';
                                  ~~~~~~~~~~~~~~~~~~~~~

ERROR in node_modules/@nativescript/datetimepicker/ui/index.d.ts:3:33 - error TS2307: Cannot find module './time-picker-field' or its corresponding type declarations.

3 export { TimePickerField } from './time-picker-field';
                                  ~~~~~~~~~~~~~~~~~~~~~

ERROR in node_modules/@nativescript/datetimepicker/utils/index.d.ts:3:15 - error TS2307: Cannot find module './localization-utils' or its corresponding type declarations.

3 export * from './localization-utils';
                ~~~~~~~~~~~~~~~~~~~~~~

ERROR in node_modules/@nativescript/datetimepicker/utils/localization-utils.common.d.ts:1:35 - error TS2307: Cannot find module './localization-utils' or its corresponding type declarations.

1 import { LocalizationUtils } from "./localization-utils";

My package.json:

{
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "repository": "<fill-your-repository-here>",
  "dependencies": {
    "@angular/animations": "^12.2.5",
    "@angular/common": "^12.2.5",
    "@angular/compiler": "^12.2.5",
    "@angular/core": "^12.2.5",
    "@angular/forms": "^12.2.5",
    "@angular/http": "8.0.0-beta.10",
    "@angular/platform-browser": "^12.2.5",
    "@angular/platform-browser-dynamic": "^12.2.5",
    "@angular/router": "^12.2.5",
    "@nativescript/angular": "^12.2.0",
    "@nativescript/background-http": "~5.0.0",
    "@nativescript/camera": "~5.0.0",
    "@nativescript/core": "~8.1.1",
    "@nativescript/datetimepicker": "~2.1.9",
    "@nativescript/firebase": "~11.0.0",
    "@nativescript/geolocation": "~8.0.0",
    "@nativescript/imagepicker": "~1.0.0",
    "@nativescript/theme": "^3.0.1",
    "@ngx-translate/core": "~14.0.0",
    "@ngx-translate/http-loader": "~7.0.0",
    "@nstudio/nativescript-camera-plus": "^4.1.0",
    "@nstudio/nativescript-loading-indicator": "~4.0.0",
    "@nstudio/nativescript-pulltorefresh": "~3.0.0",
    "@nstudio/nativescript-snackbar": "~2.0.0",
    "nativescript-angular": "^10.0.0",
    "nativescript-imagecropper": "~4.0.0",
    "nativescript-nfc": "4.0.1",
    "nativescript-permissions": "^1.3.8",
    "nativescript-sound-kak": "^1.2.0",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-ui-chart": "~9.0.0",
    "nativescript-ui-sidedrawer": "~10.0.0",
    "nativescript-webview-interface": "^1.4.2",
    "reflect-metadata": "~0.1.10",
    "rxjs": "~7.3.0",
    "tns-platform-declarations": "^6.5.15",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular/compiler-cli": "^12.2.5",
    "@nativescript/android": "8.1.1",
    "@nativescript/schematics": "~0.5.0",
    "@nativescript/types": "~8.1.0",
    "@nativescript/webpack": "rc",
    "@ngtools/webpack": "^12.2.5",
    "@types/jasmine": "^3.5.11",
    "typescript": "~4.3.5"
  },
  "readme": "NativeScript Application",
  "main": "./src/main.ts"
}

Ngôn ngữ chính
TypeScript
Star
206
Fork
123
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NativeScript/plugins

Tất cả issue của NativeScript/plugins

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.