Closed luckypal closed 3 years ago
Hello. I am gonna use this package in IONIC, but I can't. (Originally, I am using webtorrent in IONIC) When I run project, it shows error like this.
I tried to find solution, and fix it to add this in package.json
It works well when I run this. ionic cordova emulate android -l
ionic cordova emulate android -l
But when I build release apk, it doesn't work, because http package can't be used in IONIC or Angular. It shows "protocol.request is not function"
Is there any solution for this?
You need to figure how to tell iconic to shim the Node.js http package for you.
iconic
http
Hello. I am gonna use this package in IONIC, but I can't. (Originally, I am using webtorrent in IONIC) When I run project, it shows error like this.
I tried to find solution, and fix it to add this in package.json
It works well when I run this.
ionic cordova emulate android -l
But when I build release apk, it doesn't work, because http package can't be used in IONIC or Angular. It shows "protocol.request is not function"
Is there any solution for this?