我尝试在angular-cli项目上安装https://github.com/tmakin/TypedJSON,但我不知道如何正确安装这些类型。
当在angular-cli上需要输入时,我做了类似的事情:
<div class="parentDiv">
scrolling in this area should scroll the inner overflow div <br>
scrolling in this area should scroll the inner overflow div <br>
scrolling in this area should scroll the inner overflow div <br>
scrolling in this area should scroll the inner overflow div <br>
scrolling in this area should scroll the inner overflow div <br>
scrolling in this area should scroll the inner overflow div <br>
<div class="childDiv">
this should scroll only form outside and inside<br>
this should scroll only form outside and inside<br>
this should scroll only form outside and inside<br>
this should scroll only form outside and inside<br>
this should scroll only form outside and inside<br>
this should scroll only form outside and inside<br>
this should scroll only form outside and inside<br>
this should scroll only form outside and inside<br>
this should scroll only form outside and inside<br>
v
this should scroll only form outside and inside<br>
</div>
</div>
但在这种情况下,自述文件说:
npm install --save-dev @types/moment
这不起作用,因为它创建了一个typings /文件夹,而不是在node_modules / @ types /上安装它(我认为应该在这里输入)。
我做了一个构建,但是我收到了以下警告:
typings install npm:typedjson-npm
此外,在浏览器控制台上出现下一个错误:
WARNING in ./~/typedjson/js/typed-json.js
25:24-31 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
我该如何安装打字?