question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'toLocaleString' of undefined

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report
[ ] feature request
[ ] support request

Current behavior An error is thrown when using the pagination:

Cannot read property 'toLocaleString' of undefined
    at Object.eval [as updateRenderer] (DataTableFooterComponent.html:20)
    at Object.debugUpdateRenderer [as updateRenderer] (services.ts:307)
    at checkAndUpdateView (view.ts:392)
    at callViewAction (view.ts:700)
    at execEmbeddedViewsAction (view.ts:670)
    at checkAndUpdateView (view.ts:389)
    at callViewAction (view.ts:700)
    at execComponentViewsAction (view.ts:644)
    at checkAndUpdateView (view.ts:392)
    at callViewAction (view.ts:700)

Expected behavior No errors

Reproduction of the problem The problem is reproduced in this Angular Quickstart repository: https://github.com/Neverminder/quickstart

What is the motivation / use case for changing the behavior? The bug makes the table unusable and breaks the whole application.

Please tell us about your environment: Ubuntu 16.04, IntelliJ Ultimate 2017, npm

  • Table version: 9.3.0 Still exists in the latest version.

  • Angular version: 4.1.3 Yes.

  • Browser: [all | Chrome 58

  • Language: TypeScript 2.3.1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
amelnikoffcommented, Jul 6, 2017

Actually my count wasn’t set. It was undefined and defined it became after loading data from server.

5reactions
wizarrccommented, Oct 4, 2017

+1 for better error message

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'toLocaleString' of undefined [duplicate]
The problem isn't with toLocaleString , the issue is that somewhere you're passing undefined to your function. You'll need to figure out why ......
Read more >
Discord.js TypeError: Cannot read property 'toLocaleString' ...
So I began to change my bot to get members from a guiold to show top users The Code used to be const...
Read more >
Raven Sudio 35181 : Cannot read property 'toLocaleString' ...
I'm experiencing the same error. This error renders the studio useless because the uncaught JS error. It could easily be prevented by changing...
Read more >
error typeerror: cannot read properties of undefined ...
2 Answers. Make sure that data.Tuition is defined (Has a value). Only then you can use the toLocaleString method. The best answer would...
Read more >
Cannot read property 'toLocaleString' of undefined
The problem isn't with toLocaleString , the issue is that somewhere you're passing undefined to your function. You'll need to figure out why...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found