-
Notifications
You must be signed in to change notification settings - Fork 305
[1.3.12] Wrong lint warning when import is only use as declaration #1074
Comments
slightly related i'm getting linting error where I've disabled linting with comment
|
Same issue here |
Duplicate of #1052, where the same issue was already occurring on 1.3.8. |
Another example:
results in " 'PipeTransform' is declared but never used." when it clearly is. |
I'm facing this issue as well. In my case, I've upgraded from [email protected] to (current) latest [email protected]. If someone, in Ionic stuff, need a live example, I can provide you with the entire project. Thanks. |
Also a problem for me. I just updated the Ionic scripts today and got lots of ' ... is declared but never used.' for imports that are actually being used. Really annoying. But the build works normally. My env:
|
I've got the same issue as @rroque6428 above, but I'm on 3.7.0. Ionic info:
|
Same issue as @lostdev @rroque6428 @peterpeterparker.
|
strange, I also just updated my dependencies, now my app does not work anymore :/ cli packages: (/Users/pichonx/Development/tendbe/tb-mobile/node_modules)
local packages:
System:
does sombody have found something yet? |
Solved. Check #1052 In short: just remove 'src/declarations.d.ts' file (refer to the above thread for details) |
Thx @rroque6428 but the issue you listed doesn't solve this issue. My project already doesn't contains any The issue is therefore still open. |
Thx @rroque6428 the issue you listed did solve this issue. |
not sure if removing the file is the right solution, we need the declaration file because we import third part javascript files. |
is the problem solved for anyone ? |
Here is the solution |
Removing declarations.d.ts didn't help me either. It seems like this issue is supposed to be fixed in newer typescript versions, but I am still having issues even with ts 1.5.3: palantir/tslint#2470 |
I also have this issue and deleting the declaration.d.ts file removed some of the false positive warnings I have but not all of them. |
Short description of the problem:
With app-scripts 1.3.12, when an import is only use as declaration, tslint will display this import as never used
What behavior are you expecting?
No warning
Steps to reproduce:
Code
** tslint output **
Which @ionic/app-scripts version are you using?
1.3.12
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
global packages:
local packages:
System:
The text was updated successfully, but these errors were encountered: