# Uncaught TypeError: Cannot read property 'scripted' of undefined

**URL:** <https://discuss.elastic.co/t/uncaught-typeerror-cannot-read-property-scripted-of-undefined/177206>\
**Category:** Kibana\
**Created:** [April 17, 2019, 6:57am UTC](https://discuss.elastic.co/t/uncaught-typeerror-cannot-read-property-scripted-of-undefined/177206 "2019-04-17T06:57:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammed\_khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammed_khan/32/42668_2.png) [@Mohammed\_khan](https://discuss.elastic.co/u/Mohammed_khan)\
**Post date:** [April 17, 2019, 6:57am UTC](https://discuss.elastic.co/t/uncaught-typeerror-cannot-read-property-scripted-of-undefined/177206/1 "2019-04-17T06:57:33Z")

</div>

Error: Uncaught TypeError: Cannot read property 'scripted' of undefined ([http://localhost:5601/dlls/vendors.bundle.dll.js:82](http://localhost:5601/dlls/vendors.bundle.dll.js:82))  
at window.onerror ([http://localhost:5601/bundles/commons.bundle.js:3:935489](http://localhost:5601/bundles/commons.bundle.js:3:935489))  
what to do, how to solve??

---

<div class="post-metadata">

**Author:** ![sebastien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebastien/32/36119_2.png) [@sebastien](https://discuss.elastic.co/u/sebastien)\
**Post date:** [April 17, 2019, 8:12am UTC](https://discuss.elastic.co/t/uncaught-typeerror-cannot-read-property-scripted-of-undefined/177206/2 "2019-04-17T08:12:58Z")

</div>

Hi @Mohammed_khan

Could you provide the call stack of the error in order to investigate?

Cheers

---

<div class="post-metadata">

**Author:** ![Mohammed\_khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammed_khan/32/42668_2.png) [@Mohammed\_khan](https://discuss.elastic.co/u/Mohammed_khan)\
**Post date:** [April 22, 2019, 10:18am UTC](https://discuss.elastic.co/t/uncaught-typeerror-cannot-read-property-scripted-of-undefined/177206/3 "2019-04-22T10:18:04Z")

</div>

Sorry, I am a newbie, can u tell me where can i get the call stack of error.

---

<div class="post-metadata">

**Author:** ![sebastien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebastien/32/36119_2.png) [@sebastien](https://discuss.elastic.co/u/sebastien)\
**Post date:** [April 22, 2019, 1:23pm UTC](https://discuss.elastic.co/t/uncaught-typeerror-cannot-read-property-scripted-of-undefined/177206/4 "2019-04-22T13:23:09Z")

</div>

Hello,

Copy and paste here the error that is thrown both in the browser console and in the Kibana server console.

Cheers

---

<div class="post-metadata">

**Author:** ![Mohammed\_khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammed_khan/32/42668_2.png) [@Mohammed\_khan](https://discuss.elastic.co/u/Mohammed_khan)\
**Post date:** [April 23, 2019, 6:34am UTC](https://discuss.elastic.co/t/uncaught-typeerror-cannot-read-property-scripted-of-undefined/177206/5 "2019-04-23T06:34:15Z")

</div>

Error in browser console :  
INFO: 2019-04-23T06:30:53Z  
Adding connection to [http://localhost:5601/elasticsearch](http://localhost:5601/elasticsearch)

:5601/dlls/vendors.bundle.dll.js:82 Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to [http://momentjs.com/guides/#/warnings/js-date/](http://momentjs.com/guides/#/warnings/js-date/) for more info.  
Arguments:  
[0] \_isAMomentObject: true, \_isUTC: false, \_useUTC: false, \_l: undefined, \_i: now/M, \_f: undefined, \_strict: undefined, \_locale: [object Object]  
Error  
at Function.createFromInputFallback ([http://localhost:5601/dlls/vendors.bundle.dll.js:82:95725](http://localhost:5601/dlls/vendors.bundle.dll.js:82:95725))  
at [http://localhost:5601/dlls/vendors.bundle.dll.js:82:106923](http://localhost:5601/dlls/vendors.bundle.dll.js:82:106923)  
at [http://localhost:5601/dlls/vendors.bundle.dll.js:82:106974](http://localhost:5601/dlls/vendors.bundle.dll.js:82:106974)  
at ye ([http://localhost:5601/dlls/vendors.bundle.dll.js:82:107264](http://localhost:5601/dlls/vendors.bundle.dll.js:82:107264))  
at [http://localhost:5601/dlls/vendors.bundle.dll.js:82:107654](http://localhost:5601/dlls/vendors.bundle.dll.js:82:107654)  
at ge ([http://localhost:5601/dlls/vendors.bundle.dll.js:82:107716](http://localhost:5601/dlls/vendors.bundle.dll.js:82:107716))  
at pe ([http://localhost:5601/dlls/vendors.bundle.dll.js:82:107748](http://localhost:5601/dlls/vendors.bundle.dll.js:82:107748))  
at e ([http://localhost:5601/dlls/vendors.bundle.dll.js:82:92754](http://localhost:5601/dlls/vendors.bundle.dll.js:82:92754))  
at Function.convertTimeToUTCString ([http://localhost:5601/bundles/commons.bundle.js:3:443295](http://localhost:5601/bundles/commons.bundle.js:3:443295))  
at DashboardStateManager.handleTimeChange ([http://localhost:5601/bundles/commons.bundle.js:4:411762](http://localhost:5601/bundles/commons.bundle.js:4:411762))  
at controller ([http://localhost:5601/bundles/commons.bundle.js:4:393266](http://localhost:5601/bundles/commons.bundle.js:4:393266))  
at Object.invoke ([http://localhost:5601/dlls/vendors.bundle.dll.js:434:53093](http://localhost:5601/dlls/vendors.bundle.dll.js:434:53093))  
at controllerInit (http://localhost:5601/dlls/vendors.bundle.dll.js:434:120878) at nodeLinkFn (http://localhost:5601/dlls/vendors.bundle.dll.js:434:99974) at compositeLinkFn (http://localhost:5601/dlls/vendors.bundle.dll.js:434:85279) at publicLinkFn (http://localhost:5601/dlls/vendors.bundle.dll.js:434:82886) w @ :5601/dlls/vendors.bundle.dll.js:82 :5601/bundles/commons.bundle.js:3 Error: Uncaught TypeError: Cannot read property 'scripted' of undefined (http://localhost:5601/dlls/vendors.bundle.dll.js:82) at window.onerror (:5601/bundles/commons.bundle.js:3) FatalErrorsService.add @ :5601/bundles/commons.bundle.js:3 :5601/dlls/vendors.bundle.dll.js:82 Uncaught TypeError: Cannot read property 'scripted' of undefined at termsAgg (:5601/bundles/commons.bundle.js:3) at ListControl.\_callee (:5601/bundles/commons.bundle.js:3)  
at tryCatch (:5601/dlls/vendors.bundle.dll.js:490)  
at Generator.invoke [as \_invoke] (:5601/dlls/vendors.bundle.dll.js:490)  
at Generator.prototype.(anonymous function) [as next] ([http://localhost:5601/dlls/vendors.bundle.dll.js:490:448387](http://localhost:5601/dlls/vendors.bundle.dll.js:490:448387))  
at step (:5601/bundles/commons.bundle.js:3)  
at :5601/bundles/commons.bundle.js:3  
at new Promise ()  
at ListControl. (:5601/bundles/commons.bundle.js:3)  
at ListControl.fetch (:5601/bundles/commons.bundle.js:3)  
at :5601/bundles/commons.bundle.js:3  
at Map.forEach ()  
at VisController.\_callee7$ (:5601/bundles/commons.bundle.js:3)  
at tryCatch (:5601/dlls/vendors.bundle.dll.js:490)  
at Generator.invoke [as \_invoke] (:5601/dlls/vendors.bundle.dll.js:490)  
at Generator.prototype.(anonymous function) [as next] ([http://localhost:5601/dlls/vendors.bundle.dll.js:490:448387](http://localhost:5601/dlls/vendors.bundle.dll.js:490:448387))  
:5601/bundles/commons.bundle.js:3 Uncaught Error: Uncaught TypeError: Cannot read property 'scripted' of undefined ([http://localhost:5601/dlls/vendors.bundle.dll.js:82](http://localhost:5601/dlls/vendors.bundle.dll.js:82))  
at window.onerror (:5601/bundles/commons.bundle.js:3)

And no error at kibana console!!!!!!!!!!!!!!!!!!!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 21, 2019, 6:34am UTC](https://discuss.elastic.co/t/uncaught-typeerror-cannot-read-property-scripted-of-undefined/177206/6 "2019-05-21T06:34:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
