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

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))&_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)
at Function.requireEnsure [as e] (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
at initializeLazyComponentType (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)
at mountLazyComponent (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)
at beginWork$$1 (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)
at workLoopSync (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)
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 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)
at Function.requireEnsure [as e] (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
at initializeLazyComponentType (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)
at mountLazyComponent (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)
at beginWork$$1 (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)
at workLoopSync (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)
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)
at Function.requireEnsure [as e] (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
at initializeLazyComponentType (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)
at mountLazyComponent (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)
at beginWork$$1 (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)
at workLoopSync (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)
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.

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?

Below steps worked:

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

Thanks

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