# Uncaught ChunkLoadError: Loading chunk 2 failed. (error: http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.chunk.2.js)

**URL:** <https://discuss.elastic.co/t/uncaught-chunkloaderror-loading-chunk-2-failed-error-http-localhost-5601-nrd-9007199254740991-bundles-plugin-data-data-chunk-2-js/273720>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [May 22, 2021, 10:45am UTC](https://discuss.elastic.co/t/uncaught-chunkloaderror-loading-chunk-2-failed-error-http-localhost-5601-nrd-9007199254740991-bundles-plugin-data-data-chunk-2-js/273720 "2021-05-22T10:45:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi\_yadav2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravi_yadav2/32/61530_2.png) [@ravi\_yadav2](https://discuss.elastic.co/u/ravi_yadav2)\
**Post date:** [May 22, 2021, 10:45am UTC](https://discuss.elastic.co/t/uncaught-chunkloaderror-loading-chunk-2-failed-error-http-localhost-5601-nrd-9007199254740991-bundles-plugin-data-data-chunk-2-js/273720/1 "2021-05-22T10:45:22Z")

</div>

Hi Team

I am trying to run kibana development v7.10.2. But when navigating to

[http://localhost:5601/nrd/app/visualize#/edit/9886b410-4c8b-11e8-b3d7-01146121b73d?\_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now)](http://localhost:5601/nrd/app/visualize#/edit/9886b410-4c8b-11e8-b3d7-01146121b73d?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now)))&\_a=(filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:d3d7af60-4c81-11e8-b3d7-01146121b73d,key:FlightDelayMin,negate:!t,params:(query:0,type:phrase),type:phrase,value:'0'),query:(match:(FlightDelayMin:(query:0,type:phrase))))),linked:!f,query:(language:kuery,query:''),uiState:(vis:(legendOpen:!f)),vis:(aggs:!((enabled:!t,id:'1',params:(),schema:metric,type:count),(enabled:!t,id:'2',params:(customLabel:'Flight%20Delay%20Minutes',extended\_bounds:(),field:FlightDelayMin,has\_extended\_bounds:!f,interval:30,min\_doc\_count:!f),schema:segment,type:histogram)),params:(addLegend:!t,addTimeMarker:!f,addTooltip:!t,categoryAxes:!((id:CategoryAxis-1,labels:(show:!t,truncate:100),position:bottom,scale:(type:linear),show:!t,style:(),title:(),type:category)),grid:(categoryLines:!f,style:(color:%23eee)),labels:(show:!f),legendPosition:right,seriesParams:!((data:(id:'1',label:Count),drawLinesBetweenPoints:!t,mode:stacked,show:true,showCircles:!t,type:histogram,valueAxis:ValueAxis-1)),thresholdLine:(color:%23E7664C,show:!f,style:full,value:10,width:1),times:!(),type:histogram,valueAxes:!((id:ValueAxis-1,labels:(filter:!f,rotate:0,show:!t,truncate:100),name:LeftAxis-1,position:left,scale:(mode:normal,type:linear),show:!t,style:(),title:(text:Count),type:value))),title:'%5BFlights%5D%20Delay%20Buckets',type:histogram))

The UI breaks.  
In Browser Console getting below logs  
node\_modules\react-dom\cjs\react-dom.development.js:13035 Uncaught ChunkLoadError: Loading chunk 2 failed.  
(error: [http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.chunk.2.js](http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.chunk.2.js))  
at Function.requireEnsure [as e] ([http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.plugin.js:106:26](http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.plugin.js:106:26))  
at [http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.plugin.js:46400:219](http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.plugin.js:46400:219)  
at initializeLazyComponentType ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:318373:20](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:318373:20))  
at readLazyComponentType ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:330370:3](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:330370:3))  
at mountLazyComponent ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:335979:19](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:335979:19))  
at beginWork$1 ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:337506:16](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:337506:16))  
at beginWork$$1 ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:343094:14](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:343094:14))  
at performUnitOfWork ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342033:12](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342033:12))  
at workLoopSync ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342009:22](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342009:22))  
at performSyncWorkOnRoot ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:341608:11](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:341608:11))  
requireEnsure @ webpack\bootstrap:105  
(anonymous) @ src\plugins\data\public\ui\search\_bar\index.tsx:25  
initializeLazyComponentType @ node\_modules\react-dom\cjs\react-dom.development.js:1035  
readLazyComponentType @ node\_modules\react-dom\cjs\react-dom.development.js:13032  
mountLazyComponent @ node\_modules\react-dom\cjs\react-dom.development.js:18641  
beginWork$1 @ node\_modules\react-dom\cjs\react-dom.development.js:20168  
beginWork$$1 @ node\_modules\react-dom\cjs\react-dom.development.js:25756  
performUnitOfWork @ node\_modules\react-dom\cjs\react-dom.development.js:24695  
workLoopSync @ node\_modules\react-dom\cjs\react-dom.development.js:24671  
performSyncWorkOnRoot @ node\_modules\react-dom\cjs\react-dom.development.js:24270  
(anonymous) @ node\_modules\react-dom\cjs\react-dom.development.js:12199  
unstable\_runWithPriority @ node\_modules\scheduler\cjs\scheduler.development.js:697  
runWithPriority$2 @ node\_modules\react-dom\cjs\react-dom.development.js:12149  
flushSyncCallbackQueueImpl @ node\_modules\react-dom\cjs\react-dom.development.js:12194  
flushSyncCallbackQueue @ node\_modules\react-dom\cjs\react-dom.development.js:12182  
scheduleUpdateOnFiber @ node\_modules\react-dom\cjs\react-dom.development.js:23709  
enqueueSetState @ node\_modules\react-dom\cjs\react-dom.development.js:13994  
**kbnSharedDeps**.../../node\_modules/react/cjs/react.development.js.Component.setState @ node\_modules\react\cjs\react.development.js:325  
(anonymous) @ node\_modules\react-router\esm\react-router.js:74  
listener @ node\_modules\history\cjs\history.js:178  
(anonymous) @ node\_modules\history\cjs\history.js:196  
notifyListeners @ node\_modules\history\cjs\history.js:195  
setState @ node\_modules\history\cjs\history.js:311  
(anonymous) @ node\_modules\history\cjs\history.js:334  
confirmTransitionTo @ node\_modules\history\cjs\history.js:168  
handlePop @ node\_modules\history\cjs\history.js:332  
handlePopState @ node\_modules\history\cjs\history.js:317  
replaceHashPath @ node\_modules\history\cjs\history.js:546  
(anonymous) @ node\_modules\history\cjs\history.js:698  
confirmTransitionTo @ node\_modules\history\cjs\history.js:168  
replace @ node\_modules\history\cjs\history.js:687  
updateUrl @ src\plugins\kibana\_utils\public\state\_management\url\kbn\_url\_storage.ts:108  
flush @ src\plugins\kibana\_utils\public\state\_management\url\kbn\_url\_storage.ts:127  
(anonymous) @ src\plugins\kibana\_utils\public\state\_management\url\kbn\_url\_storage.ts:156  
Show 4 more frames  
VM17 react\_devtools\_backend.js:2560 The above error occurred in one of your React components:  
in Unknown (created by WrappedSearchBar)  
in Suspense (created by WrappedSearchBar)  
in WrappedSearchBar (created by EnhancedType)  
in EnhancedType (created by InjectIntl(EnhancedType))  
in InjectIntl(EnhancedType)  
in Provider  
in Unknown (created by TopNavMenu)  
in span (created by TopNavMenu)  
in TopNavMenu  
in EuiContext (created by I18nContext)  
in PseudoLocaleWrapper (created by I18nProvider)  
in IntlProvider (created by I18nProvider)  
in I18nProvider (created by I18nContext)  
in I18nContext  
in Unknown (created by TopNav)  
in TopNav (created by VisualizeEditorCommon)  
in div (created by VisualizeEditorCommon)  
in VisualizeEditorCommon (created by VisualizeEditor)  
in VisualizeEditor (created by VisualizeApp)  
in Route (created by VisualizeApp)  
in Switch (created by VisualizeApp)  
in VisualizeApp  
in EuiContext (created by I18nContext)  
in PseudoLocaleWrapper (created by I18nProvider)  
in IntlProvider (created by I18nProvider)  
in I18nProvider (created by I18nContext)  
in I18nContext  
in Provider  
in Router

Consider adding an error boundary to your tree to customize error handling behavior.  
Visit [https://fb.me/react-error-boundaries](https://fb.me/react-error-boundaries) to learn more about error boundaries.  
overrideMethod @ VM17 react\_devtools\_backend.js:2560  
logCapturedError @ node\_modules\react-dom\cjs\react-dom.development.js:21843  
logError @ node\_modules\react-dom\cjs\react-dom.development.js:21880  
update.callback @ node\_modules\react-dom\cjs\react-dom.development.js:23232  
callCallback @ node\_modules\react-dom\cjs\react-dom.development.js:13829  
commitUpdateEffects @ node\_modules\react-dom\cjs\react-dom.development.js:13867  
commitUpdateQueue @ node\_modules\react-dom\cjs\react-dom.development.js:13857  
commitLifeCycles @ node\_modules\react-dom\cjs\react-dom.development.js:22160  
commitLayoutEffects @ node\_modules\react-dom\cjs\react-dom.development.js:25344  
callCallback @ node\_modules\react-dom\cjs\react-dom.development.js:336  
invokeGuardedCallbackDev @ node\_modules\react-dom\cjs\react-dom.development.js:385  
invokeGuardedCallback @ node\_modules\react-dom\cjs\react-dom.development.js:440  
commitRootImpl @ node\_modules\react-dom\cjs\react-dom.development.js:25082  
unstable\_runWithPriority @ node\_modules\scheduler\cjs\scheduler.development.js:697  
runWithPriority$2 @ node\_modules\react-dom\cjs\react-dom.development.js:12149  
commitRoot @ node\_modules\react-dom\cjs\react-dom.development.js:24922  
finishSyncRender @ node\_modules\react-dom\cjs\react-dom.development.js:24329  
performSyncWorkOnRoot @ node\_modules\react-dom\cjs\react-dom.development.js:24307  
(anonymous) @ node\_modules\react-dom\cjs\react-dom.development.js:12199  
unstable\_runWithPriority @ node\_modules\scheduler\cjs\scheduler.development.js:697  
runWithPriority$2 @ node\_modules\react-dom\cjs\react-dom.development.js:12149  
flushSyncCallbackQueueImpl @ node\_modules\react-dom\cjs\react-dom.development.js:12194  
workLoop @ node\_modules\scheduler\cjs\scheduler.development.js:641  
flushWork @ node\_modules\scheduler\cjs\scheduler.development.js:596  
performWorkUntilDeadline @ node\_modules\scheduler\cjs\scheduler.development.js:203  
node\_modules\scheduler\cjs\scheduler.development.js:217 Uncaught ChunkLoadError: Loading chunk 2 failed.  
(error: [http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.chunk.2.js](http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.chunk.2.js))  
at Function.requireEnsure [as e] ([http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.plugin.js:106:26](http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.plugin.js:106:26))  
at [http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.plugin.js:46400:219](http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.plugin.js:46400:219)  
at initializeLazyComponentType ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:318373:20](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:318373:20))  
at readLazyComponentType ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:330370:3](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:330370:3))  
at mountLazyComponent ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:335979:19](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:335979:19))  
at beginWork$1 ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:337506:16](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:337506:16))  
at beginWork$$1 ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:343094:14](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:343094:14))  
at performUnitOfWork ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342033:12](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342033:12))  
at workLoopSync ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342009:22](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342009:22))  
at performSyncWorkOnRoot ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:341608:11](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:341608:11))  
node\_modules\react-dom\cjs\react-dom.development.js:13035 Uncaught ChunkLoadError: Loading chunk 2 failed.  
(error: [http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.chunk.2.js](http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.chunk.2.js))  
at Function.requireEnsure [as e] ([http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.plugin.js:106:26](http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.plugin.js:106:26))  
at [http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.plugin.js:46400:219](http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.plugin.js:46400:219)  
at initializeLazyComponentType ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:318373:20](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:318373:20))  
at readLazyComponentType ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:330370:3](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:330370:3))  
at mountLazyComponent ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:335979:19](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:335979:19))  
at beginWork$1 ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:337506:16](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:337506:16))  
at beginWork$$1 ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:343094:14](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:343094:14))  
at performUnitOfWork ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342033:12](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342033:12))  
at workLoopSync ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342009:22](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342009:22))  
at performSyncWorkOnRoot ([http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:341608:11](http://localhost:5601/nrd/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:341608:11))  
VM17 react\_devtools\_backend.js:2560 The above error occurred in one of your React components:  
in Unknown (created by WrappedSearchBar)  
in Suspense (created by WrappedSearchBar)  
in WrappedSearchBar (created by EnhancedType)  
in EnhancedType (created by InjectIntl(EnhancedType))  
in InjectIntl(EnhancedType)  
in Provider  
in Unknown (created by TopNavMenu)  
in span (created by TopNavMenu)  
in TopNavMenu  
in EuiContext (created by I18nContext)  
in PseudoLocaleWrapper (created by I18nProvider)  
in IntlProvider (created by I18nProvider)  
in I18nProvider (created by I18nContext)  
in I18nContext  
in Unknown (created by TopNav)  
in TopNav (created by VisualizeEditorCommon)  
in div (created by VisualizeEditorCommon)  
in VisualizeEditorCommon (created by VisualizeEditor)  
in VisualizeEditor (created by VisualizeApp)  
in Route (created by VisualizeApp)  
in Switch (created by VisualizeApp)  
in VisualizeApp  
in EuiContext (created by I18nContext)  
in PseudoLocaleWrapper (created by I18nProvider)  
in IntlProvider (created by I18nProvider)  
in I18nProvider (created by I18nContext)  
in I18nContext  
in Provider  
in Router

Please help me to fix this.

---

<div class="post-metadata">

**Author:** ![Mikhail\_Shustov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikhail_shustov/32/49186_2.png) [@Mikhail\_Shustov](https://discuss.elastic.co/u/Mikhail_Shustov)\
**Post date:** [May 24, 2021, 9:14am UTC](https://discuss.elastic.co/t/uncaught-chunkloaderror-loading-chunk-2-failed-error-http-localhost-5601-nrd-9007199254740991-bundles-plugin-data-data-chunk-2-js/273720/2 "2021-05-24T09:14:14Z")

</div>

> [@ravi\_yadav2](#):
>
> Uncaught ChunkLoadError: Loading chunk 2 failed.

Can you make sure that all the Kibana plugins are built successfully with `node scripts/build_kibana_platform_plugins.js --dist --no-examples`?

Can you load `http://localhost:5601/nrd/9007199254740991/bundles/plugin/data/data.chunk.2.js)` via `curl` or browser directly?  
Do you experience the problem in browser incognito mode?

---

<div class="post-metadata">

**Author:** ![ravi\_yadav2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravi_yadav2/32/61530_2.png) [@ravi\_yadav2](https://discuss.elastic.co/u/ravi_yadav2)\
**Post date:** [May 24, 2021, 12:41pm UTC](https://discuss.elastic.co/t/uncaught-chunkloaderror-loading-chunk-2-failed-error-http-localhost-5601-nrd-9007199254740991-bundles-plugin-data-data-chunk-2-js/273720/3 "2021-05-24T12:41:09Z")

</div>

Below steps worked:

1. yarn cache clean
2. yarn kbn clean
3. yarn kbn bootstrap --no-cache
4. yarn run start

Thanks

---

<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:** [June 21, 2021, 12:41pm UTC](https://discuss.elastic.co/t/uncaught-chunkloaderror-loading-chunk-2-failed-error-http-localhost-5601-nrd-9007199254740991-bundles-plugin-data-data-chunk-2-js/273720/4 "2021-06-21T12:41:28Z")

</div>

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