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

Can`t appen kendo-ui-core to project #174

Open
casufi opened this issue Sep 15, 2016 · 3 comments
Open

Can`t appen kendo-ui-core to project #174

casufi opened this issue Sep 15, 2016 · 3 comments

Comments

@casufi
Copy link

casufi commented Sep 15, 2016

I added kendo-ui-core to project using
npm install kendo-ui-core --save-dev
than I imported it in app.js

import $ from 'jquery';
import angular from 'angular';
import 'kendo-ui-core';

Now I get the follwing error
Error: The Kendo UI directives require jQuery to be available before AngularJS. Please include jquery before angular in the document.

Please advise how to import jquery in correct way.

@casufi
Copy link
Author

casufi commented Sep 15, 2016

Here is the whole app.js

import $ from 'jquery';
import angular from 'angular';
import 'kendo-ui-core';
import uiRouter from 'angular-ui-router';
import ngResource from 'angular-resource';
import ngCookies from 'angular-cookies';
import Common from './common/common';
import Components from './components/components';
import AppComponent from './app.component';
import 'normalize.css';

angular.module('app', [
    'kendo.directives',
    uiRouter,
    ngResource,
    ngCookies,
    Common,
    Components
  ])
  .config(($locationProvider, $httpProvider) => {
    "ngInject";
    // @see: https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions
    // #how-to-configure-your-server-to-work-with-html5mode
    $locationProvider.html5Mode(true).hashPrefix('!');
    $httpProvider.interceptors.push('InterceptorService');

  })

  .component('app', AppComponent);

@samithaf
Copy link
Contributor

samithaf commented Sep 21, 2016

try something like this,

import $ from 'jquery';
import jQuery from 'jquery';

@casufi
Copy link
Author

casufi commented Sep 21, 2016

Here is the solution telerik/kendo-ui-core#1932

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

2 participants