Skip to content
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

Knockout-kendo not working if kendo is loaded from private NPM (@progress/kendo-ui) #245

Open
crashnick16 opened this issue Apr 27, 2017 · 2 comments

Comments

@crashnick16
Copy link

Hi I tried to include kendo using the private npm but it seems the knockout-kendo library does not work it with. Any ideas what configuration should I use within webpack to get this working?

http://docs.telerik.com/kendo-ui/intro/installation/npm

@nicknguyen
Copy link

nicknguyen commented Dec 14, 2017

I have the same issue as well using webpack + typescript:

ERROR in ./node_modules/knockout-kendo/build/knockout-kendo.js
Module not found: Error: Can't resolve 'kendo' in '.\node_modules\knockout-kendo\build'
@ ./node_modules/knockout-kendo/build/knockout-kendo.js 21:56-72

webpack.config.js:
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery",
kendo: "@ progress/kendo-ui/js/kendo.all.js"})

typescript:
import "knockout-kendo/build/knockout-kendo.js";

@irega
Copy link
Contributor

irega commented Feb 14, 2018

@crashnick16 @nicknguyen I have implemented an example for you. It uses typescript and webpack. You have to set a "kendo" alias in webpack config for the new npm kendo package works with the CommonJS module resolution inside "knockout-kendo".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants