angular - ipfs npm package with Angular not working
问题描述
I'm trying to use the ipfs package in my angular app, but it doesn't compile. I first had issues with installing ipfs with npm install ipfs
because it couldn't find certain packages. It did install by installing these packages first: npm install node-pre-gyp wrtc ipfs
After which I can import it and use it in the code with import * as IPFS from 'ipfs'
The problem is that angular doesn't want to compile:
These are just a fraction of the errors that it gives. I already tried
"compilerOptions": { //.... "esModuleInterop": true, "allowSyntheticDefaultImports": true },
But no success.
解决方案
推荐阅读
- c# - 在 Xamarin 中打开或关闭位置/或查看位置设置
- angular - 如何对使用服务进行 GET 调用的 Angular 组件进行单元测试
- r - 你如何计算随机生成的数据帧的比例?
- c# - 在 Xamarin 中播放 .wav 音频
- javascript - 在 nodejs 中的 Square API 中格式化来自 webhook 的响应
- docker - 如何让管理员使用 Docker 在本地运行
- android - 如何获取 AdView 横幅高度
- javascript - 正确位于 Json 中的 Filterring 数组
- c++ - 如何知道函数C++中参数的格式
- maven - 如何使用系统属性将参数传递给 runner/maven 构建