Closed jamesmikesell closed 6 years ago
Good suggestion. I'll take a look.
Just realized that in addition to the above, I had to remove "types": []
from tsconfig.app.json
in the project that uses ngx-virtual-scroller.
I've made the change you requested & published it to npm under version 1.0.6.
Let me know if that solves the issue.
I assume I don't need to do anything in relation to the "types": []
in tsconfig.app.json
that you mentioned, since that sounds like a change in the consuming app.
A this point, I don't think you need to do anything else, however I'm curious if needing to remove "types": []
in tsconfig.app.json
is indicative that there is something else being missed / misconfigured.
I'll do some more investigation and re-open if i find a more elegant solution.
Problem
Angular projects using ngx-virtual-scoller which have their
tsconfig.json
compilerOptions.noImplicitAny
set totrue
fail to compile with the following error:While this can be remedied by adding
"@types/tween.js": "^16.9.0"
to the package.json, I believe the underlying issue is that nxg-virtual-scroller should have@types/tween.js
added to it'spackage.json
dependencies
section instead of it's current location in thedevDependencies
.I believe this is the underlying problem in issues #210 and #227.
Suggested Resolution
Move
@types/tween.js
in package.json line 59 into thedependencies
section (instead of it's current location ofdevDependencies
).