Build error - can't resolve p-queue
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- nodejs, typescript
- Lĩnh vực
- build-system, mobile
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi với ns build android, sau đó truy vết import bị thiếu từ node_modules/@nativescript-community/ble/bluetooth.js và so sánh nó với khai báo dependency trong package.json được hiển thị. Hoàn thành khi module p-queue được resolve trong quá trình build NativeScript Android mà không cần cài đặt thủ công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Trying to build a project that build yesterday -- might be an NPM issue?
I tried to manually add p-queue package to no effect. :(
Package.json
{
"name": "@nativescript/template-hello-world-ng",
"main": "main.js",
"version": "7.0.9",
"author": "NativeScript Team <[email protected]>",
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"publishConfig": {
"access": "public"
},
"keywords": [
"nativescript",
"mobile",
"angular",
"{N}",
"template"
],
"repository": "<fill-your-repository-here>",
"bugs": {
"url": "https://github.com/NativeScript/NativeScript/issues"
},
"dependencies": {
"@angular/animations": "~11.0.0",
"@angular/common": "~11.0.0",
"@angular/compiler": "~11.0.0",
"@angular/core": "~11.0.0",
"@angular/forms": "~11.0.0",
"@angular/platform-browser": "~11.0.0",
"@angular/platform-browser-dynamic": "~11.0.0",
"@angular/router": "~11.0.0",
"@nativescript-community/ble": "^3.0.14",
"@nativescript-community/ui-material-textfield": "^5.2.8",
"@nativescript/angular": "~11.0.0",
"@nativescript/core": "~7.1.0",
"@nativescript/theme": "~3.0.0",
"p-queue": "^7.1.0",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.6.0",
"zone.js": "~0.11.1"
},
"devDependencies": {
"@angular/compiler-cli": "~11.0.0",
"@nativescript/android": "7.0.1",
"@nativescript/types": "~7.0.0",
"@nativescript/webpack": "~4.0.0",
"@ngtools/webpack": "~11.0.0",
"typescript": "~4.0.0"
},
"private": "true",
"readme": "NativeScript Application"
}
`🐚 ns build android
Preparing project...
Hash: e74776b5dd36659135c1
Version: webpack 4.44.2
Time: 10620ms
Built at: 05/07/2021 6:14:47 PM
3 assets
Entrypoint bundle = runtime.js vendor.js bundle.js
[../$$_lazy_route_resource lazy recursive] ../$$_lazy_route_resource lazy namespace object 160 bytes {bundle} [built]
[./app.css] 2.03 KiB {bundle} [built]
[./app/app-routing.module.ts] 1.16 KiB {bundle} [built]
[./app/app.component.ts] 883 bytes {bundle} [built]
[./app/app.module.ts] 1.44 KiB {bundle} [built]
[./app/device/device.service.ts] 1.35 KiB {bundle} [built]
[./app/device/devices.component.ts] 12.9 KiB {bundle} [built]
[./app/utils/byte_array_converter.ts] 1.34 KiB {bundle} [built]
[./main.ts] 1.9 KiB {bundle} [built]
[/package.json] external "/package.json" 42 bytes {bundle} [optional] [built]
+ 550 hidden modules
WARNING in Zone.js does not support native async/await in ES2017+.
These blocks are not intercepted by zone.js and will not triggering change detection.
See: https://github.com/angular/zone.js/pull/1140 for more information.
ERROR in ../node_modules/@nativescript-community/ble/bluetooth.js
Module not found: Error: Can't resolve 'p-queue' in '/Users/charles/projects/kanayo/andtool/node_modules/@nativescript-community/ble'
@ ../node_modules/@nativescript-community/ble/bluetooth.js 4:0-29 951:29-35
@ ./app/device/devices.component.ts
@ ./app/app.module.ts
@ ./main.ts
Executing webpack failed with exit code 2.`
- Ngôn ngữ chính
- TypeScript
- Star
- 202
- Fork
- 79
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nativescript-community/ble
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
nativescript-community/ble#282 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
nativescript-community/ble#280 · 8 bình luận ·
-
Passkey supportĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
nativescript-community/ble#279 · 4 bình luận · 1 reaction ·
-
Scan throws error on android 13+Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
nativescript-community/ble#276 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
nativescript-community/ble#275 · 6 bình luận ·
Tất cả issue của nativescript-community/ble
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
callstackincubator/rozenite#518 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area/Workflow Priority/Blocker Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
wso2/product-integrator#2622 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
area:bash bug has repro platform:macos
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
anthropics/claude-code#98644 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
allure-framework/allure-js#1603 ·
Maintainer thường phản hồi trong vòng 1 ngày