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

v0.5.0 release: Cannot read property 'serverSide' of undefined #439

Closed
bfalzarano opened this issue Sep 9, 2015 · 14 comments
Closed

v0.5.0 release: Cannot read property 'serverSide' of undefined #439

bfalzarano opened this issue Sep 9, 2015 · 14 comments
Labels
Milestone

Comments

@bfalzarano
Copy link

Angular-datatables was working fine until the v0.5.0 release here https://rawgit.com/l-lin/angular-datatables/master/dist/angular-datatables.min.js

I am now receiving the following error:

TypeError: Cannot read property 'serverSide' of undefined
    at Object.f [as fromOptions] (rawgit.com/l-lin/angular-datatables/master/dist/angular-datatables.min.js:6)
    at rawgit.com/l-lin/angular-datatables/master/dist/angular-datatables.min.js:6
    at processQueue (angular.js:13292)
    at angular.js:13308
    at Scope.$eval (angular.js:14547)
    at Scope.$digest (angular.js:14363)
    at Scope.$apply (angular.js:14652)
    at bootstrapApply (angular.js:1458)
    at Object.invoke (angular.js:4219)
    at doBootstrap (angular.js:1456)

And my dependency versions are listed here in the following order:

  %script{"data-require" => "[email protected]", "data-semver" => "1.10.1", :src => "https://code.jquery.com/jquery-1.10.1.min.js"}
  %script{"data-require" => "[email protected]", "data-semver" => "1.10.1", :src => "https://cdn.datatables.net/1.10.1/js/jquery.dataTables.js"}
  %script{"data-require" => "[email protected]", "data-semver" => "1.3.16", :src => "https://code.angularjs.org/1.3.16/angular.js"}
  %script{"data-require" => "[email protected]", "data-semver" => "0.4.2", :src => "https://rawgithub.com/l-lin/angular-datatables/master/dist/angular-datatables.min.js"}

On my web page the table now just says "Loading..." however the table never loads the actual data into the table because of this error. Should I change my dependency versions or what url can I specify to roll back to angular-datatables version 0.4.2 or 0.4.3 which was working? And is anyone else encountering this error or can confirm this error?

Regards

@l-lin
Copy link
Owner

l-lin commented Sep 9, 2015

Mmh it's weird you got this error.
Can you post the code where this error is thrown?

If you want to rollback to older version, you can use this url: https://rawgithub.com/l-lin/angular-datatables/v0.4.3/dist/angular-datatables.min.js

@bfalzarano
Copy link
Author

@l-lin below is the code where the error is thrown. If I remove the datatable="ng" bit then then table renders with the data and no error is thrown. short-term I will roll back to v0.4.3 using the url you sent, thanks. long-term lmk if there is something I should change or test so I can use the latest version.

Regards

    <table datatable="ng" class="table table-striped table-bordered table-condensed table-hover">
      <thead>
        <tr>
          <td colspan="5"> Select Items to add to Project</td>
        </tr>
        <tr>
        <td align="center"><b>Select#</b></td> 
        <td align="center"><b>Sku#</b></td>
          <td align="center"><b>Product Name</b></td>
          <td align="center"><b>Category</b></td>
          <!-- <td align="center"><b>UOM</b></td> -->
        </tr>
      </thead>
      <tbody ui-sortable>
        <tr ng-repeat="item in items">
          <td width="5px" align="center">
            <input type="checkbox" ng-model="item.checked" ng-click="toggleSelection(item)">
          </td> 
          <td>{{item.sku}}</td>
          <td width="200px">{{item.name}}</td>
          <td>{{item.category}}</td>

        </tr>
      </tbody>
    </table>

@l-lin l-lin added the bug label Sep 10, 2015
@l-lin l-lin added this to the v0.5.1 milestone Sep 10, 2015
@l-lin
Copy link
Owner

l-lin commented Sep 10, 2015

Ok, my bad. Forgot a check.
It will be fixed on v0.5.1.

@l-lin l-lin closed this as completed Sep 10, 2015
@corehook
Copy link

have same issue

angular AngularJS v1.3.13
angular-datatables - v0.5.0

TypeError: Cannot read property 'serverSide' of undefined

@ghost
Copy link

ghost commented Sep 15, 2015

Same issue here, please let us know what to do!

@l-lin
Copy link
Owner

l-lin commented Sep 15, 2015

It will be fixed on v0.5.1.

@ghost
Copy link

ghost commented Sep 15, 2015

Thanks!

@ghost
Copy link

ghost commented Sep 16, 2015

I upgraded to v0.5.1 and still throws same error when I put the datatable="ng" right away

@l-lin
Copy link
Owner

l-lin commented Sep 16, 2015

v0.5.1 is still not out...

@mpochron
Copy link

Please update repo with new tag #0.5.1

Using bower still gets old version.

@jex310
Copy link

jex310 commented Oct 26, 2015

Hi @l-lin may I know when you will release v0.5.1?

@l-lin
Copy link
Owner

l-lin commented Oct 27, 2015

Here you go.

@sakyika
Copy link

sakyika commented Oct 29, 2015

I'm still getting this error

@l-lin
Copy link
Owner

l-lin commented Oct 29, 2015

Can you share your code?

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

No branches or pull requests

6 participants