Using npm run build in sentinel-dashboard failed
- Dominant language
- Java
- Stars
- 23.1k
- Forks
- 8.1k
- PR merge metrics
- No merged PRs in 30d
Description
1.运行npm install
警告
npm WARN bootstrap-switch@3.3.4 requires a peer of bootstrap@^3.1.1 but none was installed.
npm WARN sentinel-dashboard@1.0.0 No repository field.
2.运行npm run build
报错
app/scripts/services/flow_service_v1.js: line 18, col 13, 'param' is defined but never used.
app/scripts/services/flow_service_v1.js: line 95, col 29, Expected '===' and instead saw '=='.
app/scripts/services/flow_service_v1.js: line 95, col 51, Expected '===' and instead saw '=='.
app/scripts/services/flow_service_v1.js: line 96, col 70, Expected '===' and instead saw '=='.
app/scripts/services/flow_service_v1.js: line 105, col 36, Expected '===' and instead saw '=='.
app/scripts/services/flow_service_v1.js: line 109, col 36, Expected '===' and instead saw '=='.
app/scripts/services/flow_service_v1.js: line 113, col 119, Line is too long.
app/scripts/services/flow_service_v1.js: line 74, col 14, 'notNumberAtLeastZero' is defined but never used.
app/scripts/services/flow_service_v1.js: line 84, col 13, 'alert' is not defined.
app/scripts/services/flow_service_v1.js: line 88, col 13, 'alert' is not defined.
app/scripts/services/flow_service_v1.js: line 92, col 13, 'alert' is not defined.
app/scripts/services/flow_service_v1.js: line 97, col 17, 'alert' is not defined.
app/scripts/services/flow_service_v1.js: line 102, col 13, 'alert' is not defined.
app/scripts/services/flow_service_v1.js: line 106, col 13, 'alert' is not defined.
app/scripts/services/flow_service_v1.js: line 110, col 13, 'alert' is not defined.
app/scripts/services/flow_service_v1.js: line 114, col 13, 'alert' is not defined.
node 版本:v7.0.0
npm:版本:3.10.8

Contributor guide
Research direction
Start by running npm install and npm run build in sentinel-dashboard with the reported Node.js and npm versions. Inspect app/scripts/services/flow_service_v1.js for the listed lint errors, including unused definitions, equality checks, undefined alert usage, and line length. Done means the dashboard build completes without these errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100