Cannot read property 'toLocaleString' of undefined
See original GitHub issueI’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:
- Created 6 years ago
- Reactions:1
- Comments:9 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Actually my count wasn’t set. It was undefined and defined it became after loading data from server.
+1 for better error message