I'm trying to use the @blueprintjs/core
library in my project. However, when I compile my code, I'm getting many errors like this:
node_modules/@blueprintjs/core/dist/common/classes.d.ts(4,30):
error TS1039: Initializers are not allowed in ambient contexts.
What's going on? What am I doing wrong?
You can remove the node version and reinstall it by using the below comand
Delete your node-modules folder and do a clean installation.
Upgrade typescript to at least 3.1+.