Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack + Vue issue #1527

Closed
volokolamskspb opened this issue Oct 13, 2018 · 2 comments
Closed

Webpack + Vue issue #1527

volokolamskspb opened this issue Oct 13, 2018 · 2 comments
Labels

Comments

@volokolamskspb
Copy link

@volokolamskspb volokolamskspb commented Oct 13, 2018

What version of WebTorrent?
0.102.4
"vue": "^2.5.17"
webpack4
What did you expect to happen?
Should add video to DOM and get BlobUrl of file.
What actually happened?
Uncaught TypeError: Cannot read property reading of undefined

files.forEach((file)=>{
                client.add(file, this.onTorrent);
            });
torrent.files.forEach( (file) => {
                file.getBlobURL(function (err, url) {
                    if (err) throw err
                    var a = document.createElement('a')
                    a.download = file.name
                    a.href = url
                    a.textContent = 'Download ' + file.name
                    document.body.appendChild(a)
                })
            });

selection_003

@miraries

This comment has been minimized.

Copy link

@miraries miraries commented Nov 1, 2018

Don't know what the issue is but if you use the pre-built version it seems to work.

import WebTorrent from 'webtorrent/webtorrent.min'
@stale

This comment has been minimized.

Copy link

@stale stale bot commented Jan 31, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Jan 31, 2019
@stale stale bot closed this Feb 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.