-
Notifications
You must be signed in to change notification settings - Fork 1.2k
vue-cli generated project emits errors together with js-ipfs #1875
Comments
first 1000 lines of error dump https://pastebin.com/XQJ4pxti |
Adding myself to the thread here to receive status updates. A solution to this problem may also present a better way to address the bundling currently being done with webpack for ProtoSchool. (see ProtoSchool/protoschool.github.io#168) |
@hugomrdias can you share your really simple fix to this? It would also be good to get a PR for a simple example that people can copy/paste or refer to when creating a new Vue+IPFS project which would allow us to also close off #1436 😉 |
Have the same issue - I get |
Same here, does anyone know a way around this? The best I can do is load it in a <script src="https://unpkg.com/ipfs/dist/index.js"></script> (in plugin/anywhere with access to Vue.prototype.$ipfs = new window.Ipfs()
// and then access later with
this.$ipfs ... ; But I'd like to be able to bundle it with my app. |
this PR #1884 will fix this issue. |
This issue is resolved in the last release. |
I still have the problem ...
|
Looks like you're using |
Also note that you can pass |
Thanks for your feedback.
|
I don't know anything about the http-client (I'm just running a full node in my Vue app and it works great), but I do know that you might have better luck on the forum where more people will see your question |
You can run an ipfs node in your browser -
🎉
Ok, well, that sounds like a bug. If you have a error message and/or stack trace, please open an issue here and we can help you out.
You shouldn't need We have an example here https://github.com/ipfs/js-ipfs-http-client/tree/master/examples/upload-file-via-browser which is react, but you can maybe get some inspiration from it. |
Thanks a lot for that. |
Looks like as if the |
js-ipfs version: 0.34.4-
Repo version: 7
System version: x64/linux
Node.js version: v11.9.0
Linux hostname 4.20.6-arch1-1-ARCH Add to cli:
ipfs pin [-r] <ipfs-path>
#1 SMP PREEMPT Thu Jan 31 08:22:01 UTC 2019 x86_64 GNU/Linuxlike, all of them
Type:Bug
Severity: High
Description:
I tried to write an IPFS application together with vue.
As soon as I create an IPFS instance, the console is filled with errors
I am no IPFS/javascript/babel/webpack/vue expert whatsoever, so I will be glad for some insight.
This might just be some problem with vue-cli, I have no idea what went wrong :^)
Steps to reproduce the error:
referece repo: https://github.com/guysv/vuebug
clickable link to code: https://github.com/guysv/vuebug/blob/master/src/components/HelloWorld.vue#L34-L44
The text was updated successfully, but these errors were encountered: