-
Notifications
You must be signed in to change notification settings - Fork 12k
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
All errors assumed to be lint errors #867
Comments
#848 fixes this issue. Until @hansl does a release, change the bottom part of your tslint.json to: https://github.com/angular/angular-cli/pull/848/files#diff-53fb140e7018814de9f2e231a3eb95a1R65 |
Confirmed, that fixed it. But we may want to look at how it's swallowing useful error information as well. |
@daniellmb very good point. It's a problem that |
It seems this problem may have resurfaced on 1.0.0-beta.6. I just reproduced with an empty project. |
|
After updating to angular 2.0.2
Suggestions mentioned in the comment above (https://github.com/angular/angular-cli/pull/848/files#diff-53fb140e7018814de9f2e231a3eb95a1R65) are already present in UPD: The actual errors are not caught by |
@vkniazeu what output do you get from |
@filipesilva I left the relevant stack trace in the description of #2567.
|
I just upgraded "codelyzer" to "1.0.0-beta.1" - the only change and now
|
|
In summary: |
@vkniazeu I had seen that stack trace, but was also interested in the actual console log of @mgechev (the mainteiner of Using that version, I got at least |
@filipesilva I think I was rushing my tests before and, rather than introducing a |
I want to leave this open because we still swallow errors in the command. I'm happy to hear that there isn't a problem with tslint proper though! |
I am getting the same thing using the latest CLI 25.5 |
@daniellmb @daBishMan would you share the output of:
Most likely the issue is caused by upgrading of already existing project to the new CLI. This kept the old For further information about the codelyzer's configuration, please take a look here. |
$ cat node_modules/codelyzer/package.json | grep version |
This confirms my theory. You need to update your |
@daBishMan This is what the new projects use for Try using that and see if you have the same issue. |
many thanks @delasteve I will give this a try much appreciated. and also many thanks to @mgechev for your help as well. I will update this issue ASAP with the result after I update my rule file. |
@delasteve @mgechev the new results is much better, it was the tslint file for sure. If you can help me answer one more question, I am getting the following error, which is on an html page, it is due to the implementation of a third party control we are using. How can I suppress this error in HTML file? `$ ng lint
c:/git/gig/gig-talentsearch-client/src/app/search/search-results-navigation/search-results-navigation.component.html[29, 32]: The property "numPages" that you're trying to access does not exist in the class declaration. Lint errors found in the listed files.` |
I believe it's this error: https://github.com/mgechev/codelyzer/blob/master/src/templatesUsePublicRule.ts Judging by the looks of the rule without seeing your code, you may have declared something private that you're trying to use in a template. That, or you are trying to access something in the file that you haven't declared as a class property. |
@daBishMan Can you try without the "--type-check" ? Still seeing no output ? |
Without --type-check works, this is how angular-cli generates it. |
Closes angular#867, angular#3993 BREAKING CHANGE: In order to use the new `ng lint` command, the following section will have to be added to the project's `angular-cli.json` at the root level of the json object. ```json "lint": [ { "files": "<%= sourceDir %>/**/*.ts", "project": "<%= sourceDir %>/tsconfig.json" }, { "files": "e2e/**/*.ts", "project": "e2e/tsconfig.json" } ], ``` Alternatively, you can run `ng update`.
Closes angular#867, angular#3993 BREAKING CHANGE: In order to use the new `ng lint` command, the following section will have to be added to the project's `angular-cli.json` at the root level of the json object. ```json "lint": [ { "files": "src/**/*.ts", "project": "src/tsconfig.json" }, { "files": "e2e/**/*.ts", "project": "e2e/tsconfig.json" } ], ``` Alternatively, you can run `ng update`.
Closes angular#867, angular#3993 BREAKING CHANGE: In order to use the updated `ng lint` command, the following section will have to be added to the project's `angular-cli.json` at the root level of the json object. ```json "lint": [ { "files": "src/**/*.ts", "project": "src/tsconfig.json" }, { "files": "e2e/**/*.ts", "project": "e2e/tsconfig.json" } ], ``` Alternatively, you can run `ng update`.
Closes angular#867, angular#3993 BREAKING CHANGE: In order to use the updated `ng lint` command, the following section will have to be added to the project's `angular-cli.json` at the root level of the json object. ```json "lint": [ { "files": "src/**/*.ts", "project": "src/tsconfig.json" }, { "files": "e2e/**/*.ts", "project": "e2e/tsconfig.json" } ], ``` Alternatively, you can run `ng update`.
Closes #867, #3993 BREAKING CHANGE: In order to use the updated `ng lint` command, the following section will have to be added to the project's `angular-cli.json` at the root level of the json object. ```json "lint": [ { "files": "src/**/*.ts", "project": "src/tsconfig.json" }, { "files": "e2e/**/*.ts", "project": "e2e/tsconfig.json" } ], ``` Alternatively, you can run `ng update`.
Closes angular#867, angular#3993 BREAKING CHANGE: In order to use the updated `ng lint` command, the following section will have to be added to the project's `angular-cli.json` at the root level of the json object. ```json "lint": [ { "files": "src/**/*.ts", "project": "src/tsconfig.json" }, { "files": "e2e/**/*.ts", "project": "e2e/tsconfig.json" } ], ``` Alternatively, you can run `ng update`.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Mac OSX 10.9.5
ng --version
. If there's nothing outputted, pleaserun in a Terminal:
node --version
And paste the result here.
v5.6.0
do on your code? etc.
Run
ng lint
the rule loader throws an error but this line assumes it is a lint error showing the following confusing message.more information.
The text was updated successfully, but these errors were encountered: