Internal Error 500( Unable to read webpack stats file)

Hi Mikael,

Rebuild our project using Vaadin 14.4.3 and get the following or start up (development mode):

npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/webpack-dev-server/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN no-name@ No description
npm WARN no-name@ No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/@babel/cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

2020-11-30 06:54:04.043  INFO 17506 --- [  restartedMain]
 dev-updater                              : Frontend dependencies resolved successfully.
2020-11-30 06:54:04.044  INFO 17506 --- [  restartedMain]
 dev-updater                              : Copying frontend resources from jar files ...
2020-11-30 06:54:04.061  INFO 17506 --- [  restartedMain]
 dev-updater                              : Visited 18 resources. Took 17 ms.
2020-11-30 06:54:04.133  INFO 17506 --- [  restartedMain]
 dev-updater                              : Updated /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/target/frontend/generated-flow-imports.js

------------------ Starting Frontend compilation. ------------------
2020-11-30 06:54:04.233  INFO 17506 --- [  restartedMain]
 dev-webpack                              : Running webpack to compile frontend resources. This may take a moment, please stand by...
2020-11-30 06:54:06.564  INFO 17506 --- [  restartedMain]
 dev-webpack                              : Started webpack-dev-server. Time: 2332ms
Vaadin application has been deployed and started to the context path "/development".

We get the login screen, logged in and then received this error:

2020-11-30 06:58:30.631 DEBUG 17506 --- [0.1-8080-exec-7]
 o.a.u.c.n.ViewSecurityRegistrator        : Granting access to view [class onerev.app.ui.dashboard.DashboardView]

2020-11-30 06:58:30.704 DEBUG 17506 --- [0.1-8080-exec-7]
 o.a.ui.common.error.SessionErrorHandler  : Handling uncaught exception

com.vaadin.flow.server.BootstrapException: Unable to read webpack stats file.
	at com.vaadin.flow.server.BootstrapHandler$BootstrapPageBuilder.setupFrameworkLibraries(BootstrapHandler.java:893) ~[flow-server-2.3.7.jar:2.3.7]

	at com.vaadin.flow.server.BootstrapHandler$BootstrapPageBuilder.setupDocumentHead(BootstrapHandler.java:770) ~[flow-server-2.3.7.jar:2.3.7]

	at com.vaadin.flow.server.BootstrapHandler$BootstrapPageBuilder.getBootstrapPage(BootstrapHandler.java:539) ~[flow-server-2.3.7.jar:2.3.7]

	at com.vaadin.flow.server.BootstrapHandler.synchronizedHandleRequest(BootstrapHandler.java:480) ~[flow-server-2.3.7.jar:2.3.7]

	at com.vaadin.flow.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:40) ~[flow-server-2.3.7.jar:2.3.7]

	at com.vaadin.flow.server.VaadinService.handleRequest(VaadinService.java:1545) ~[flow-server-2.3.7.jar:2.3.7]

	at com.vaadin.flow.server.VaadinServlet.service(VaadinServlet.java:247) ~[flow-server-2.3.7.jar:2.3.7]

	at com.vaadin.flow.spring.SpringServlet.service(SpringServlet.java:108) ~[vaadin-spring-12.3.1.jar:na]

...
Caused by: java.net.ConnectException: Connection refused (Connection refused)
	at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:na]

	at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) ~[na:na]

	at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) ~[na:na]

	at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) ~[na:na]

	at java.base/java.net.Socket.connect(Socket.java:591) ~[na:na]

	at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177) ~[na:na]

	at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474) ~[na:na]

	at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569) ~[na:na]

	at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:242) ~[na:na]

	at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:341) ~[na:na]

	at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:362) ~[na:na]

	at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1242) ~[na:na]

	at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181) ~[na:na]

	at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1075) ~[na:na]

	at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1009) ~[na:na]

	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1581) ~[na:na]

	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509) ~[na:na]

	at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527) ~[na:na]

	at com.vaadin.flow.server.frontend.FrontendUtils.getStatsAssetsByChunkName(FrontendUtils.java:532) ~[flow-server-2.3.7.jar:2.3.7]

	at com.vaadin.flow.server.BootstrapHandler$BootstrapPageBuilder.appendNpmBundle(BootstrapHandler.java:909) ~[flow-server-2.3.7.jar:2.3.7]

	at com.vaadin.flow.server.BootstrapHandler$BootstrapPageBuilder.setupFrameworkLibraries(BootstrapHandler.java:891) ~[flow-server-2.3.7.jar:2.3.7]

	... 92 common frames omitted


Additional Information

rebuilt using Vaadin 14.3.9

ran npm install in node_modules/webpack-dev-server:

/usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js install --scripts-prepend-node-path=auto
npm WARN deprecated superagent@3.8.3: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header).  This notice will go away with v5.0.2+ once it is released.
npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported

> husky@3.1.0 install /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server/node_modules/husky
> node husky install

husky > Setting up git hooks
Trying to install from node_modules directory, skipping Git hooks installation.
husky > Done

> puppeteer@1.20.0 install /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server/node_modules/puppeteer
> node install.js

Downloading Chromium r686378 - 114 Mb [====================]
 100% 0.0s 
Chromium downloaded to /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server/node_modules/puppeteer/.local-chromium/linux-686378

> core-js@2.6.12 postinstall /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> husky@3.1.0 postinstall /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server/node_modules/husky
> opencollective-postinstall || exit 0

Thank you for using husky!
If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/husky/donate


> webpack-dev-server@3.10.3 prepare /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server
> rimraf ./ssl/*.pem && npm run build:client


> webpack-dev-server@3.10.3 build:client /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server
> rimraf ./client/* && npm-run-all -s -l -p "build:client:**"

[build:client:index  ]
 
[build:client:index  ]
 > webpack-dev-server@3.10.3 build:client:index /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server
[build:client:index  ]
 > webpack ./client-src/default/index.js -o client/index.bundle.js --color --config client-src/default/webpack.config.js
[build:client:index  ]
 
[build:client:live   ]
 
[build:client:live   ]
 > webpack-dev-server@3.10.3 build:client:live /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server
[build:client:live   ]
 > webpack ./client-src/live/index.js -o client/live.bundle.js --color --config client-src/live/webpack.config.js
[build:client:live   ]
 
[build:client:sockjs ]
 
[build:client:sockjs ]
 > webpack-dev-server@3.10.3 build:client:sockjs /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server
[build:client:sockjs ]
 > webpack ./client-src/sockjs/index.js -o client/sockjs.bundle.js --color --config client-src/sockjs/webpack.config.js
[build:client:sockjs ]
 
[build:client:clients]
 
[build:client:clients]
 > webpack-dev-server@3.10.3 build:client:clients /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server
[build:client:clients]
 > babel client-src/clients --out-dir client/clients
[build:client:clients]
 
[build:client:default]
 
[build:client:default]
 > webpack-dev-server@3.10.3 build:client:default /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server
[build:client:default]
 > babel client-src/default --out-dir client --ignore "./client-src/default/*.config.js"
[build:client:default]
 
[build:client:default]
 babel:
[build:client:clients]
 babel:
[build:client:default]
   client-src/default does not exist
[build:client:clients]
   client-src/clients does not exist
[build:client:default]
 npm ERR! code ELIFECYCLE
[build:client:default]
 npm ERR! errno 2
[build:client:clients]
 npm ERR! code ELIFECYCLE
[build:client:clients]
 npm ERR! errno 2
[build:client:default]
 npm ERR! webpack-dev-server@3.10.3 build:client:default: `babel client-src/default --out-dir client --ignore "./client-src/default/*.config.js"`
[build:client:default]
 npm ERR! Exit status 2
[build:client:default]
 npm ERR! 
[build:client:default]
 npm ERR! Failed at the webpack-dev-server@3.10.3 build:client:default script.
[build:client:default]
 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[build:client:clients]
 npm ERR! webpack-dev-server@3.10.3 build:client:clients: `babel client-src/clients --out-dir client/clients`
[build:client:clients]
 npm ERR! Exit status 2
[build:client:clients]
 npm ERR! 
[build:client:clients]
 npm ERR! Failed at the webpack-dev-server@3.10.3 build:client:clients script.
[build:client:clients]
 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[build:client:clients]
 
[build:client:clients]
 npm ERR! A complete log of this run can be found in:
[build:client:clients]
 npm ERR!     /home/pcorbett/.npm/_logs/2020-11-30T15_38_48_390Z-debug.log
[build:client:default]
 
[build:client:default]
 npm ERR! A complete log of this run can be found in:
[build:client:default]
 npm ERR!     /home/pcorbett/.npm/_logs/2020-11-30T15_38_48_390Z-debug.log
ERROR: "build:client:clients" exited with 2.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webpack-dev-server@3.10.3 build:client: `rimraf ./client/* && npm-run-all -s -l -p "build:client:**"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the webpack-dev-server@3.10.3 build:client script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pcorbett/.npm/_logs/2020-11-30T15_38_48_429Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webpack-dev-server@3.10.3 prepare: `rimraf ./ssl/*.pem && npm run build:client`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the webpack-dev-server@3.10.3 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pcorbett/.npm/_logs/2020-11-30T15_38_48_472Z-debug.log

Process finished with exit code 1


As the dev server seems to have started you should try to connect to it.
for the 14 series you need to put the log level to debug and find a line looking something like:
2020-12-01 08:21:38.094 DEBUG 11924 --- [ webpack] dev-webpack : [38;5;35mi ?wds?: Project is running at http://localhost:53412/webpack-dev-server/ and try to connect to the devServer specially what you would want is the http://localhost:PORT/assetsByChunkName

------------------ Starting Frontend compilation. ------------------
2020-11-30 23:36:57.456 DEBUG 92387 --- [  restartedMain]
 dev-webpack                              : 
\ 
    ./node/node \ 
    ./node_modules/webpack-dev-server/bin/webpack-dev-server.js \ 
    --config \ 
    ./webpack.config.js --port 45219 \ 
    --watchDogPort=44023 -d --inline=false 

2020-11-30 23:36:57.457  INFO 92387 --- [  restartedMain]
 dev-webpack                              : Running webpack to compile frontend resources. This may take a moment, please stand by...

2020-11-30 23:36:57.973 DEBUG 92387 --- [        webpack]
 dev-webpack                              : ℹ 「wds」: Project is running at http://localhost:45219/webpack-dev-server/
2020-11-30 23:36:57.973 DEBUG 92387 --- [        webpack]
 dev-webpack                              : ℹ 「wds」: webpack output is served from /VAADIN/
2020-11-30 23:36:57.973 DEBUG 92387 --- [        webpack]
 dev-webpack                              : ℹ 「wds」: Content not from webpack is served from /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/target/classes/META-INF/VAADIN, src/main/webapp

2020-11-30 23:36:59.659 DEBUG 92387 --- [        webpack]
 dev-webpack                              :          Serving the 'stats.json' file dynamically.
2020-11-30 23:36:59.686 DEBUG 92387 --- [        webpack]
 dev-webpack                              : ℹ 「wdm」: Hash: e0511d3332a22124cf72
2020-11-30 23:36:59.686 DEBUG 92387 --- [        webpack]
 dev-webpack                              : Version: webpack 4.42.0
2020-11-30 23:36:59.686 DEBUG 92387 --- [        webpack]
 dev-webpack                              : Time: 1701ms
2020-11-30 23:36:59.686 DEBUG 92387 --- [        webpack]
 dev-webpack                              : Built at: 11/30/2020 11:36:59 PM
2020-11-30 23:36:59.686 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                                                                      Asset       Size  Chunks                                Chunk Names
2020-11-30 23:36:59.686 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                          build/vaadin-bundle-0f41af08d09d70b98d96.cache.js   15.4 MiB  bundle  [emitted]
 [immutable]
  [big]
  bundle
2020-11-30 23:36:59.686 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                           build/vaadin-gizmo-41af0f1bf94ebce99bd1.cache.js    431 KiB   gizmo  [emitted]
 [immutable]
         gizmo
2020-11-30 23:36:59.686 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                                           build/webcomponentsjs/LICENSE.md   1.52 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                                            build/webcomponentsjs/README.md   10.5 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                          build/webcomponentsjs/bundles/webcomponents-ce.js     20 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                      build/webcomponentsjs/bundles/webcomponents-ce.js.map    121 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                    build/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js    114 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                build/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map    671 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                       build/webcomponentsjs/bundles/webcomponents-sd-ce.js   85.7 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                   build/webcomponentsjs/bundles/webcomponents-sd-ce.js.map    543 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                          build/webcomponentsjs/bundles/webcomponents-sd.js   66.7 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                      build/webcomponentsjs/bundles/webcomponents-sd.js.map    423 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                       build/webcomponentsjs/custom-elements-es5-adapter.js  954 bytes          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                                         build/webcomponentsjs/package.json   2.45 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              : build/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js  659 bytes          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :        build/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js   1.66 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :            build/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js  675 bytes          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :         build/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js  860 bytes          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :      build/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js   1.22 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :            build/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js  767 bytes          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                              build/webcomponentsjs/webcomponents-bundle.js    115 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                          build/webcomponentsjs/webcomponents-bundle.js.map    673 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              :                              build/webcomponentsjs/webcomponents-loader.js   6.13 KiB          [emitted]
                     
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              : Entrypoint bundle [big]
 = build/vaadin-bundle-0f41af08d09d70b98d96.cache.js
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              : Entrypoint gizmo = build/vaadin-gizmo-41af0f1bf94ebce99bd1.cache.js
2020-11-30 23:36:59.687 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../node_modules/@polymer/iron-icon/iron-icon.js]
 5.5 KiB {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../node_modules/@polymer/iron-list/iron-list.js]
 59.3 KiB {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../node_modules/@polymer/paper-ripple/paper-ripple.js]
 18.3 KiB {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../node_modules/@vaadin/flow-frontend/VaadinDevmodeGizmo.js]
 32.7 KiB {gizmo} {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../node_modules/@vaadin/flow-frontend/com/github/appreciated/card/clickable-card.js]
 3.71 KiB {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../node_modules/@vaadin/flow-frontend/com/github/appreciated/card/content-card.js]
 1.34 KiB {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../node_modules/@vaadin/flow-frontend/com/github/appreciated/card/stateful-card.js]
 3.41 KiB {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../node_modules/@vaadin/flow-frontend/comboBoxConnector-es6.js]
 417 bytes {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../node_modules/@vaadin/flow-frontend/comboBoxConnector.js]
 17 KiB {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../node_modules/@vaadin/flow-frontend/contextMenuConnector-es6.js]
 319 bytes {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../node_modules/@vaadin/flow-frontend/contextMenuConnector.js]
 4.04 KiB {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../node_modules/@vaadin/flow-frontend/datepickerConnector.js]
 6.67 KiB {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../node_modules/@vaadin/flow-frontend/dndConnector-es6.js]
 29 bytes {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../node_modules/@vaadin/flow-frontend/dndConnector.js]
 4.19 KiB {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : [../target/frontend/generated-flow-imports.js]
 6.67 KiB {bundle} [built]

2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              :     + 563 hidden modules
2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : ℹ 「wdm」: Compiled successfully.
2020-11-30 23:36:59.688 DEBUG 92387 --- [        webpack]
 dev-webpack                              : 
----------------- Frontend compiled successfully. -----------------
2020-11-30 23:36:59.688  INFO 92387 --- [  restartedMain]
 dev-webpack                              : Started webpack-dev-server. Time: 2232ms

2020-11-30 23:37:00.097 DEBUG 92387 --- [        webpack]
 dev-webpack                              : Watchdog connection error. Terminating webpack process...

This is a follow up to the message above:

  1. Switched to Vaadin 14.4.4
  2. Rebuild entire project
  3. Deleted node_modules directory

So far, everything seems to be working.

If you try to start the dev server with:

./node/node \ 
    ./node_modules/webpack-dev-server/bin/webpack-dev-server.js \ 
    --config \ 
    ./webpack.config.js --port 45219 \ 
    --watchDogPort=44023 -d --inline=false 

Can you then connect to the server after it starts? As it would seem that the watchdog can’t get
a connection to the dev-server and then shuts it down as unreachable.

The exception comes from the lines


if (watchDogPort) {
  watchDogPort = watchDogPort.substr(watchDogPrefix.length);
  const runWatchDog = () => {
    const client = new require('net').Socket();
    client.setEncoding('utf8');
    client.on('error', function () {
      console.log("Watchdog connection error. Terminating webpack process...");
      client.destroy();
      process.exit(0);
    });
    client.on('close', function () {
      client.destroy();
      runWatchDog();
    });

    client.connect(watchDogPort, 'localhost');
  }
  runWatchDog();
}

in webpack.generated.js where we try to connec to the given port on localhost.