The 'hot' property is missing in the 'Module' type

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'.

Thank you for your help. I think this conflicts with @ types / webpack-env

+4
source share
2 answers

It seems like there may be a break between @types/node@8.0.26and @types/node@8.0.27that caused this error, possibly in combination with @types/webpack-env@1.13.0(at least my version).

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

: , , , : https://github.com/DefinitelyTyped/DefinitelyTyped/issues/19601 + PR : https://github.com/DefinitelyTyped/DefinitelyTyped/pull/19602

+6

- module.hot (module as any).hot. .

0

Source: https://habr.com/ru/post/1685224/


All Articles