webpack 4 bug TypeError: Cannot read property 'existsAt' of undefined
sibelius opened this issue · 3 comments
sibelius commented
/Users/sibelius/Dev/entria/app/node_modules/start-server-webpack-plugin/dist/StartServerPlugin.js:120
const existsAt = compilation.assets[name].existsAt;
^
TypeError: Cannot read property 'existsAt' of undefined
at StartServerPlugin.startServer (/Users/sibelius/Dev/entria/app/node_modules/start-server-webpack-plugin/dist/StartServerPlugin.js:120:47)
at StartServerPlugin.afterEmit (/Users/sibelius/Dev/entria/app/node_modules/start-server-webpack-plugin/dist/StartServerPlugin.js:90:10)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/sibelius/Dev/entria/app/packages/main/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:14:1)
at AsyncSeriesHook.lazyCompileHook (/Users/sibelius/Dev/entria/app/packages/main/node_modules/tapable/lib/Hook.js:154:20)
at asyncLib.forEach.err (/Users/sibelius/Dev/entria/app/packages/main/node_modules/webpack/lib/Compiler.js:354:27)
at /Users/sibelius/Dev/entria/app/packages/main/node_modules/neo-async/async.js:2825:7
at done (/Users/sibelius/Dev/entria/app/packages/main/node_modules/neo-async/async.js:2861:11)
at /Users/sibelius/Dev/entria/app/packages/main/node_modules/neo-async/async.js:2813:7
at /Users/sibelius/Dev/entria/app/packages/main/node_modules/graceful-fs/graceful-fs.js:45:10
at FSReqWrap.oncomplete (fs.js:141:20)
wmertens commented
Can you try the @beta version?
…On Tue, Nov 20, 2018 at 8:41 PM Sibelius Seraphini ***@***.***> wrote:
/Users/sibelius/Dev/entria/app/node_modules/start-server-webpack-plugin/dist/StartServerPlugin.js:120
const existsAt = compilation.assets[name].existsAt;
^
TypeError: Cannot read property 'existsAt' of undefined
at StartServerPlugin.startServer (/Users/sibelius/Dev/entria/app/node_modules/start-server-webpack-plugin/dist/StartServerPlugin.js:120:47)
at StartServerPlugin.afterEmit (/Users/sibelius/Dev/entria/app/node_modules/start-server-webpack-plugin/dist/StartServerPlugin.js:90:10)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/sibelius/Dev/entria/app/packages/main/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:14:1)
at AsyncSeriesHook.lazyCompileHook (/Users/sibelius/Dev/entria/app/packages/main/node_modules/tapable/lib/Hook.js:154:20)
at asyncLib.forEach.err (/Users/sibelius/Dev/entria/app/packages/main/node_modules/webpack/lib/Compiler.js:354:27)
at /Users/sibelius/Dev/entria/app/packages/main/node_modules/neo-async/async.js:2825:7
at done (/Users/sibelius/Dev/entria/app/packages/main/node_modules/neo-async/async.js:2861:11)
at /Users/sibelius/Dev/entria/app/packages/main/node_modules/neo-async/async.js:2813:7
at /Users/sibelius/Dev/entria/app/packages/main/node_modules/graceful-fs/graceful-fs.js:45:10
at FSReqWrap.oncomplete (fs.js:141:20)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#33>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADWlpjVNIXTyq50Jb1y3xcfKZFaFrvVks5uxFsFgaJpZM4YrzQz>
.
Magneticmagnum commented
Whats your configuration look like?
madebyherzblut commented
In case anyone runs into the same issue: Check that your output.filename
in your webpack config matches the name
in your StartServerPlugin config.