-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ts lint oneLineRule fail #833
Comments
Update tslint to "tslint@next" should be able to solve this issue. |
after npm update tslint@next, i have the same problem. |
Can you try to remove the package from "node_modules" and install it again? |
it looks like I have now a bigger trouble :D npm ERR! node v0.12.7 npm ERR! peerinvalid The package tslint does not satisfy its siblings' peerDepen |
It's alright, the issue is because |
ok, but goes with me is no more. :D |
have now again all been newly started, but unfortunately still does not go. |
Seems to be a bug in tslint: palantir/tslint#1425 |
We can use the latest tslint as in #911; this fixes it, as is in the latest tslint branch. |
yo nice. its runnig. thx |
this is still an issue |
C:\Projects\logger\src\webapp\node_modules\tslint\lib\rules\oneLineRule.js:163
if (body.kind === ts.SyntaxKind.ModuleBlock) {
^
TypeError: Cannot read property 'kind' of undefined
at OneLineWalker.visitModuleDeclaration (C:\Projects\logger\src\webapp\node_modules\tslint\lib\rules\oneLineRule.js:163:17)
at OneLineWalker.SyntaxWalker.visitNode (C:\Projects\logger\src\webapp\node_modules\tslint\lib\language\walker\syntaxWalker.js:366:22)
at C:\Projects\logger\src\webapp\node_modules\tslint\lib\language\walker\syntaxWalker.js:459:63
at visitEachNode (C:\Projects\logger\src\webapp\node_modules\typescript\lib\typescript.js:7959:30)
at Object.forEachChild (C:\Projects\logger\src\webapp\node_modules\typescript\lib\typescript.js:8117:24)
at OneLineWalker.SyntaxWalker.walkChildren (C:\Projects\logger\src\webapp\node_modules\tslint\lib\language\walker\syntaxWalker.js:459:12)
at OneLineWalker.SyntaxWalker.visitSourceFile (C:\Projects\logger\src\webapp\node_modules\tslint\lib\language\walker\syntaxWalker.js:190:14)
at OneLineWalker.SyntaxWalker.visitNode (C:\Projects\logger\src\webapp\node_modules\tslint\lib\language\walker\syntaxWalker.js:414:22)
at OneLineWalker.SyntaxWalker.walk (C:\Projects\logger\src\webapp\node_modules\tslint\lib\language\walker\syntaxWalker.js:7:14)
at Rule.AbstractRule.applyWithWalker (C:\Projects\logger\src\webapp\node_modules\tslint\lib\language\rule\abstractRule.js:19:16)
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "tslint" "src/**/.ts"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code ELIFECYCLE
npm ERR! angular2-webpack-starter@5.0.5 tslint:
tslint "src/**/_.ts"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-webpack-starter@5.0.5 tslint script 'tslint "src/__/_.ts"'.
npm ERR! This is most likely a problem with the angular2-webpack-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tslint "src//.ts"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-webpack-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls angular2-webpack-starter
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Projects\logger\src\webapp\npm-debug.log
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "lint"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code ELIFECYCLE
npm ERR! angular2-webpack-starter@5.0.5 lint:
npm run tslint "src/**/*.ts"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-webpack-starter@5.0.5 lint script 'npm run tslint "src//*.ts"'.
npm ERR! This is most likely a problem with the angular2-webpack-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run tslint "src//*.ts"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-webpack-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls angular2-webpack-starter
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Projects\logger\src\webapp\npm-debug.log
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "ci"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code ELIFECYCLE
npm ERR! angular2-webpack-starter@5.0.5 ci:
npm run lint && npm test && npm run e2e
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-webpack-starter@5.0.5 ci script 'npm run lint && npm test && npm run e2e'.
npm ERR! This is most likely a problem with the angular2-webpack-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run lint && npm test && npm run e2e
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-webpack-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls angular2-webpack-starter
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Projects\logger\src\webapp\npm-debug.log
The text was updated successfully, but these errors were encountered: