Closed seangwright closed 5 years ago
We had have the same problem after updating kendo-angular-charts version. Try deleting the package-lock.json
file and reinstalling npm packages. This solved the problem at our side.
The error should clear up if you remove node_modules
, package-lock.json
and reinstall. You should see a single, de-duplicated reference to @progress/kendo-angular-resize-sensor@3.1.2
as a result.
The root cause is that all of the mentioned packages declare a dependency on @progress/kendo-angular-resize-sensor
while it should be a peer dependency. In some situations npm will refuse to de-duplicate it, despite the fact that all packages would be satisfied with a single version.
Fixing it would be a breaking change and would require installing @progress/kendo-angular-resize-sensor
as a direct dependency in your project. We're still contemplating on the best way to carry it out.
Worked around the issue by pointing all packages to the latest version. The long-term plan is to make resize sensor a peer dependency with the next batch of breaking changes.
I have tried removing package-lock.json and node_modules, and then npm install, but with no luck. Running on Angular7, using kendo charts
@HadiSDev please open a new issue with more details regarding your setup.
I'm submitting a...
Current behavior
ng serve --aot
It appears that the app still functions since we don't use
@progress/kendo-angular-resize-sensor
explicitly in our app.Expected behavior
ng serve --aot
Minimal reproduction of the problem with instructions
Update to latest, and run ng serve (w/ AOT)
Environment
Package versions: Angular
Kendo
Dev dependencies
Browser: n/a
System:
When I look at the dep graph for the
@progress/kendo-angular-resize-sensor
package I see the followingIf I look at
@progress/kendo-angular-resize-sensor
ResizeBatchService
can't be found in any of the files in that folder.The diff of my package.json after upgrading packages looks like this for
@progress
packagesEverything was working without issue before these package changes.
It looks like the versions of
@progress/kendo-angular-resize-sensor
that@progress/kendo-angular-dropdowns@3.3.0
and@progress/kendo-angular-grid@3.9.0
depend on are not compatible with the version that@progress/kendo-angular-inputs@3.4.0
expects.Explicitly installing
@progress/kendo-angular-resize-sensor@3.1.2
removes the warnings but results in this compilation error