Giter VIP home page Giter VIP logo

Comments (3)

rakibler avatar rakibler commented on June 9, 2024

Does this actually fix everything for you? With a fresh install of ng2-datetime, when I


import 'jquery/dist/jquery.min.js';
import {NKDatetime} from 'ng2-datetime/ng2-datetime';
import 'ng2-datetime/src/vendor/bootstrap-datepicker/bootstrap-datepicker.min.js';
import 'ng2-datetime/src/vendor/bootstrap-timepicker/bootstrap-timepicker.min.js';

into my AppModule and then import NKDatetime into my declarations, I get
bootstrap-timepicker.min.js:5Uncaught ReferenceError: jQuery is not defined

from ng2-datetime.

TianCNCA avatar TianCNCA commented on June 9, 2024

You need to install the typings of jQuery as well. The missing declarations don't really affect the build as long as you have the typings installed. I just don't like seeing errors.

from ng2-datetime.

rakibler avatar rakibler commented on June 9, 2024

I did that by doing typings install dt~jquery --global but still get the errors. Am I missing anything?

Get Outlook for Androidhttps://aka.ms/ghei36

On Wed, Sep 14, 2016 at 5:52 PM -0400, "Tian" <[email protected]mailto:[email protected]> wrote:

You need to install the typings of jQuery as well. The missing declarations don't really affect the build as long as you have the typings installed. I just don't like seeing errors.


You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com//issues/47#issuecomment-247167032, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ASzUG1LAnmvv5R9JFWAnY2TQHePz3tk6ks5qqGxKgaJpZM4J9AxN.

from ng2-datetime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.