So ive created the following library:(因此,我创建了以下库:)
Now as you can see there are some red underlines.(现在,您可以看到一些红色下划线。)
Within this package i wish to use other npm packages (such as ionic
, crypto
ect)(在此软件包中,我希望使用其他npm软件包(例如ionic
, crypto
ect))
I tried to modify the package.json
inside the library:(我试图修改库中的package.json
:)
{
"name": "sdk-mobil-login-light",
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^8.2.14",
"@angular/core": "^8.2.14",
"crypto-js": "^3.1.9-1",
"sha256": "0.2.0",
"@ionic-native/unique-device-id": "^5.15.1",
"@ionic/angular": "^4.1.0",
"@ionic/storage": "^2.2.0"
}
}
However i am not quite sure how to use these?(但是我不太确定如何使用这些?) what can i do if my code relies on these modules?(如果我的代码依赖于这些模块怎么办?)
ask by Marc Rasmussen translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…