jvandemo / jvandemo/generator-angular2-library
npm run lint fails
- Dominant language
- JavaScript
- Stars
- 740
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
npm run lint fails on new project
```
admin1@PC-131:/home1/lamppp/htdocs/testCharts/charts-nethues$ npm run lint
> charts-nethues@0.1.0 lint /home1/lamppp/htdocs/testCharts/charts-nethues
> tslint --type-check --project tsconfig.json src/**/*.ts
/home1/lamppp/htdocs/testCharts/charts-nethues/node_modules/tslint/lib/runner.js:92
throw new Error(messages.join("\n"));
^
Error: Error at playground/index.ts:9:31: Cannot find module 'charts-nethues'.
Error at src/sample.component.spec.ts:7:1: Cannot find name 'describe'.
Error at src/sample.component.spec.ts:14:3: Cannot find name 'beforeEach'.
Error at src/sample.component.spec.ts:28:3: Cannot find name 'it'.
Error at src/sample.component.spec.ts:29:5: Cannot find name 'expect'.
at Runner.run (/home1/lamppp/htdocs/testCharts/charts-nethues/node_modules/tslint/lib/runner.js:92:27)
at Object. (/home1/lamppp/htdocs/testCharts/charts-nethues/node_modules/tslint/lib/tslint-cli.js:139:6)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home1/lamppp/htdocs/testCharts/charts-nethues/node_modules/tslint/bin/tslint:3:1)
npm ERR! Linux 4.4.0-93-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lint"
npm ERR! node v6.8.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! charts-nethues@0.1.0 lint: `tslint --type-check --project tsconfig.json src/**/*.ts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the charts-nethues@0.1.0 lint script 'tslint --type-check --project tsconfig.json src/**/*.ts'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the charts-nethues package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tslint --type-check --project tsconfig.json src/**/*.ts
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs charts-nethues
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls charts-nethues
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home1/lamppp/htdocs/testCharts/charts-nethues/npm-debug.log
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running `npm run lint` with the repository's `tsconfig.json` and compare the reported failures in `playground/index.ts` and `src/sample.component.spec.ts`. Trace why the module and test globals are not found, then confirm that the lint command completes successfully without those errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- testing-qa, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100