Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Property 'hot' is missing in type 'Module'

hello everyone when i use @types/node for aws-cognito-identity provider i get the following error.

Class 'Module' incorrectly implements interface 'NodeModule'.
        Property 'hot' is missing in type 'Module'.

Thanks for your help. I think it conflicts with @types/webpack-env

like image 329
Krishna Satya Avatar asked Sep 07 '17 12:09

Krishna Satya


1 Answers

Looks like there might be a breaking change between @types/[email protected] and @types/[email protected] causing this error, probably in conjunction with @types/[email protected] (my version at least).

Rolling back to 8.0.26 (adding "@types/node": "8.0.26" to my package.json) seems to fix it for now.

Edit: Looking a bit closer, it seems this has been noticed and an issue raise: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/19601 + fix PR is open: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/19602

like image 154
csmacnz Avatar answered Oct 14 '22 03:10

csmacnz