Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error TS2339: Property 'compilers' does not exist on type 'Compiler'. #384

Closed
tmohammad78 opened this issue May 18, 2020 · 1 comment
Closed

Comments

@tmohammad78
Copy link

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
Copy link
Member

Close in favor #401

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants