Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

$ is not defined #977

@Thinkingpey

Description

@Thinkingpey

What versions you are using?

  • angular version: 2.3.1
  • jquery version: 3.1.1
  • datatables version: 1.10.13
  • angular-datatables version: 2.1.0
  • angular-MM version:

What's the problem?

when i use this datatables in my angular2 project, just use the zero configuration but throw a error:
$ is not defined,i don't understand what's happen.

here is the error message:

Unhandled Promise rejection: $ is not defined ; Zone: angular ; Task: Promise.then ; Value: ReferenceError: $ is not defined
at angular-datatables.directive.js:31
at ZoneDelegate.invoke (zone.js:330)
at Object.onInvoke (ng_zone.js:273)
at ZoneDelegate.invoke (zone.js:329)
at Zone.run (zone.js:126)
at zone.js:679
at ZoneDelegate.invokeTask (zone.js:363)
at Object.onInvokeTask (ng_zone.js:264)
at ZoneDelegate.invokeTask (zone.js:362)
at Zone.runTask (zone.js:166)
at drainMicroTaskQueue (zone.js:529) ReferenceError: $ is not defined
at http://localhost:4200/0.chunk.js:59114:26
at ZoneDelegate.invoke (http://localhost:4200/vendor.bundle.js:64733:26)
at Object.onInvoke (http://localhost:4200/vendor.bundle.js:29415:37)
at ZoneDelegate.invoke (http://localhost:4200/vendor.bundle.js:64732:32)
at Zone.run (http://localhost:4200/vendor.bundle.js:64529:43)
at http://localhost:4200/vendor.bundle.js:65082:57
at ZoneDelegate.invokeTask (http://localhost:4200/vendor.bundle.js:64766:31)
at Object.onInvokeTask (http://localhost:4200/vendor.bundle.js:29406:37)
at ZoneDelegate.invokeTask (http://localhost:4200/vendor.bundle.js:64765:36)
at Zone.runTask (http://localhost:4200/vendor.bundle.js:64569:47)
at drainMicroTaskQueue (http://localhost:4200/vendor.bundle.js:64932:35)

hope you can help me, thanks a lot :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions