-
Notifications
You must be signed in to change notification settings - Fork 217
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
Install Data Query dependency with Grid #143
Comments
The |
Still, we can update the Installation article to include the |
In my experience, the Grid won't function without the |
No, the Grid is not expected to function without it. You'll get a UNMET PEER DEPENDENCY if it's not installed or with the correct version. The Getting Started article has been updated to the following installation command: P.S. It's not published yet. |
If the Grid won't work without the data-query package, it seems like it should be a child dependency instead of a peer. I worry that developers will fall into the same mistake I did which is assuming that the grid is broken instead of reading the docs. |
We can't give up the semantics of peer dependencies for what is essentially an usability issue of NPM itself. In fact, NPM < 3 used to install these automatically. Future versions might address this. Yarn might do that as well. Marking kendo-data-query and similar packages, such as kendo-drawing as direct dependencies is certainly a possibility. It will solve the problem you're having, but will create scenarios where you load multiple concurrent versions of these dependencies. This is most certainly not what the user wanted. We must not forget that NPM is a Node package manager - having multiple copies loaded is perfectly fine in Node, not so much in the browser. |
I understand now. Thank you for the schooling there on NPM. I suppose the best we can do in the meantime is make it overly and abundantly clear in the documentation that you need to have the Closing for now as I think this has been sufficiently discussed. |
Using Yarn shouldn't be a problem with #712 in effect. |
Right now, the Kendo UI Grid depends on the
kendo-data-query
package in order to work. This is listed in the docs, but easy to look over. It seems more logical the Grid would resolve and install it's own dependencies.I'm sure there is a good reason why this doesn't work that way already that I simply don't understand.
The text was updated successfully, but these errors were encountered: