-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Error uploading file "more is not a function" #1399
Comments
Hey @WieFel do you have a stack trace? I've just tried your example code and I get the message |
Hello @alanshaw . Thanks for your help!
I also have tried to use different node versions (v10.4.1, v8.9.4, v8.0.0) and I tried to downgrade the IPFS dependency, but without success... Always the same problem. |
This stack trace looks like you're calling |
Yes, sorry. In the meantime I had changed my code. But the error when using
The error is immediately thrown in the first line of the function
As I said, also when using
Versions 0.29.0 and 0.28.0 of the ipfs package yield the same error... |
Could you try |
When I try |
@WieFel could you create an public repo with some example code I can run that causes the error? I still can't see from the code where this might be going wrong. |
I have set up a fresh Ionic project with a blank page (home.html) and added a button which triggers the IPFS code (which resides in home.ts). Still, the same error appears. It seems to be a problem related to TypeScript. My best guess is that TypeScript compiles the code relating to the Looper script somehow wrong. To get the project running: |
Do you have a link to the repo? |
Did you forget to push, there's no code connecting to IPFS in there |
I had already pushed it. Did you check TestIPFS/src/pages/home/home.ts ? |
Ok now I pushed it. Sorry... |
This looks to be a problem with the ionic bundling process - I was able to get this to work by adding const node = new (window as any).Ipfs(); I don't have time to look into why this is happening just now but if you decide to look into it then please post your findings here! |
I have the same issue when I try start a node with ionic |
ipfs pin [-r] <ipfs-path>
#1 SMP PREEMPT Sun May 21 11:02:41 UTC 2017 x86_64 GNU/LinuxType: Question
Severity: Very Low
Description:
I am building a project with the Ionic framework and I want to integrate IPFS. I am trying to upload a file to IPFS...
The "ready" event is successfully triggered, but when adding a file the following error is thrown:
more is not a function
Steps to reproduce the error:
The code snipped in which I try to upload the file is:
The text was updated successfully, but these errors were encountered: