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

Error to install #1294

Closed
jeff-js opened this issue Aug 26, 2018 · 3 comments
Closed

Error to install #1294

jeff-js opened this issue Aug 26, 2018 · 3 comments

Comments

@jeff-js
Copy link

jeff-js commented Aug 26, 2018

I'm submitting a...


[ ] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[X] Question

Current behavior

At the time of installing the datatables and importing it into the app.module and running the ng serve command, the following error occurs:

Error


angular-datatables.js:1352 Uncaught ReferenceError: angular is not defined
    at Object../node_modules/angular-datatables/dist/angular-datatables.js (angular-datatables.js:1352)
    at __webpack_require__ (bootstrap:76)
    at Object../node_modules/angular-datatables/index.js (index.js:1)
    at __webpack_require__ (bootstrap:76)
    at Object../src/app/modules/customers/customers.module.ts (customers.component.ts:8)
    at __webpack_require__ (bootstrap:76)
    at Object../src/app/app.module.ts (app.component.ts:8)
    at __webpack_require__ (bootstrap:76)
    at Object../src/main.ts (environment.ts:16)
    at __webpack_require__ (bootstrap:76)

Environment


- node version: 8.11.3
- angular version: 6.1.3
- angular-cli version: "@angular/cli": "~6.1.3"
- jquery version: "jquery": "^2.2.4"
- datatables version: "datatables.net": "^1.10.19"
- angular-datatables version: "angular-datatables": "^0.6.3"
@manuarzave
Copy link

I have the same problem, could you solve it?

@jiwlee0625
Copy link

Look at this: #1295

Summary: just run npm install [email protected]

@l-lin l-lin closed this as completed Oct 2, 2018
@l-lin
Copy link
Owner

l-lin commented Oct 2, 2018

There were some fixes in the older versions (v0.6.X), so I published those version in npm.

However, npm seems to work using date to fetch what version is the latest, instead of using semantic version.

I published a new version v6.0.1, so executing npm i angular-datatables should bring you the version of angular-datatables for Angular (not AngularJS).

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

No branches or pull requests

4 participants