error TS2339: Property 'compilers' does not exist on type 'Compiler'.
tmohammad78 opened this issue · 1 comments
tmohammad78 commented
Hi , I have this error in typescript when run my server with ts-node in react app and i want use compiler.compilers.find((Compiler: any) in my code
const compiler = webpack(Config);
server.use(
webpackDevMiddleware(compiler, {
publicPath: '/',
stats: {
colors: true,
assets: true,
chunks: false,
modules: false,
hash: false
}
})
);
server.use(
webpackHotMiddleware(
// in this line i have error in compilers
compiler.compilers.find((Compiler: any) => Compiler.name === 'client'),
{
path: '/__webpack_hmr',
heartbeat: 4000
}
)
);
alexander-akait commented
Close in favor #401