I am trying to import Mustache in an Angular project in order to include a code generator in my app
I added those dependencies in package.json :
"mustache": "^4.2.0",
"@types/mustache": "^4.2.1",
Then npm install
I tried to import it like this : import * as Mustache from 'mustache';
Then use it as described in the doc : Mustache.render(template, view);
IDE seems to be ok with that but the compiler gives this error message :
Error: export 'render' (imported as 'Mustache') was not found in 'mustache' (possible exports: default)
What am I missing ?