Error: Cannot read property "endsWith" of undefined


#1

Hello,

I have add a button to a page.... now I get error:
Cannot read property "endsWith" of undefined

Even if I delete the button I still get this error

unexpectedError


#2

Hi @Heinz,

Please send us the log file as per this article:

Best Regards,
Vladimir


#3

I see this error message in the logfile:

[2019-01-04 08:08:12.780] [error] TypeError: Cannot read property 'endsWith' of undefined
    at C:\Program Files\Radzen\resources\node_modules\@radzen\angular-generator\src\Component.ts:268:36
    at Array.forEach (<anonymous>)
    at C:\Program Files\Radzen\resources\node_modules\@radzen\angular-generator\src\Component.ts:238:15
    at Array.forEach (<anonymous>)
    at Object.prepareComponent (C:\Program Files\Radzen\resources\node_modules\@radzen\angular-generator\src\Component.ts:207:6)
    at C:\Program Files\Radzen\resources\node_modules\@radzen\angular-generator\src\index.ts:1781:22
    at Array.forEach (<anonymous>)
    at allComponents (C:\Program Files\Radzen\resources\node_modules\@radzen\angular-generator\src\index.ts:1780:19)
    at writePage (C:\Program Files\Radzen\resources\node_modules\@radzen\angular-generator\src\index.ts:1859:22)
    at outputPage (C:\Program Files\Radzen\resources\node_modules\@radzen\angular-generator\src\index.ts:1568:10)
    at C:\Program Files\Radzen\resources\node_modules\@radzen\angular-generator\src\index.ts:1540:7
    at Array.map (<anonymous>)
    at outputPages (C:\Program Files\Radzen\resources\node_modules\@radzen\angular-generator\src\index.ts:1539:11)
    at generate (C:\Program Files\Radzen\resources\node_modules\@radzen\angular-generator\src\index.ts:377:5)
    at C:\Program Files\Radzen\resources\app.asar\static\main.js:1:114191
    at n (C:\Program Files\Radzen\resources\app.asar\static\main.js:1:183821)

#4

Thanks @Heinz! We will fix it immediately and fix will be part of our upcoming release!


#5

Hi @Heinz,

Can you send us this app to debug it locally? It is very strange error (component without type) and we would like to check what's going on. You can zip just the meta folder.

Best Regards,
Vladimir