vimeo.js icon indicating copy to clipboard operation
vimeo.js copied to clipboard

webpack and node

Open brucemcpherson opened this issue 5 years ago • 2 comments

I'm trying to use the node library with vuejs-cli (and webpack), and started off with authentication. But I hit some strange errors in the console related to react(which Im not using) and referencing a video(which I dont own), but passing my redirect parameters to it.

Just wondered, before I spend any more time on it, does this library work client side? (Aside from throwing this error, It did show the consent screen and return the code btw)

global_legacy_combined.min.js?99588c53:14 Uncaught ReferenceError: React is not defined
    at Object.<anonymous> (global_legacy_combined.min.js?99588c53:14)
    at n (global_legacy_combined.min.js?99588c53:14)
    at Object.<anonymous> (global_legacy_combined.min.js?99588c53:15)
    at n (global_legacy_combined.min.js?99588c53:14)
    at Object.<anonymous> (global_legacy_combined.min.js?99588c53:15)
    at n (global_legacy_combined.min.js?99588c53:14)
    at Object.<anonymous> (global_legacy_combined.min.js?99588c53:15)
    at n (global_legacy_combined.min.js?99588c53:14)
    at global_legacy_combined.min.js?99588c53:14
    at global_legacy_combined.min.js?99588c53:14
(anonymous) @ global_legacy_combined.min.js?99588c53:14
n @ global_legacy_combined.min.js?99588c53:14
(anonymous) @ global_legacy_combined.min.js?99588c53:15
n @ global_legacy_combined.min.js?99588c53:14
(anonymous) @ global_legacy_combined.min.js?99588c53:15
n @ global_legacy_combined.min.js?99588c53:14
(anonymous) @ global_legacy_combined.min.js?99588c53:15
n @ global_legacy_combined.min.js?99588c53:14
(anonymous) @ global_legacy_combined.min.js?99588c53:14
(anonymous) @ global_legacy_combined.min.js?99588c53:14
activity_topnav.bundle.min.js?8fe7b284:6 GET https://api.vimeo.com/activity/json?count=5 404 (Not Found)
(anonymous) @ activity_topnav.bundle.min.js?8fe7b284:6
i @ activity_topnav.bundle.min.js?8fe7b284:6
a @ activity_topnav.bundle.min.js?8fe7b284:6
(anonymous) @ activity_topnav.bundle.min.js?8fe7b284:6
(anonymous) @ activity_topnav.bundle.min.js?8fe7b284:6
fetchOlderActivities @ activity_topnav.bundle.min.js?8fe7b284:6
value @ activity_topnav.bundle.min.js?8fe7b284:6
e.notifyAll @ react_prod_combined.min.js?f57646b3:2
close @ react_prod_combined.min.js?f57646b3:4
closeAll @ react_prod_combined.min.js?f57646b3:5
perform @ react_prod_combined.min.js?f57646b3:5
s @ react_prod_combined.min.js?f57646b3:4
perform @ react_prod_combined.min.js?f57646b3:5
batchedUpdates @ react_prod_combined.min.js?f57646b3:4
i @ react_prod_combined.min.js?f57646b3:4
_renderNewRootComponent @ react_prod_combined.min.js?f57646b3:4
_renderSubtreeIntoContainer @ react_prod_combined.min.js?f57646b3:4
render @ react_prod_combined.min.js?f57646b3:4
h @ activity_topnav.bundle.min.js?8fe7b284:6
(anonymous) @ activity_topnav.bundle.min.js?8fe7b284:6
n @ activity_topnav.bundle.min.js?8fe7b284:1
(anonymous) @ activity_topnav.bundle.min.js?8fe7b284:1
(anonymous) @ activity_topnav.bundle.min.js?8fe7b284:1
activity_topnav.bundle.min.js?8fe7b284:6 Uncaught (in promise) TypeError: Cannot read property 'filter' of undefined
    at p (activity_topnav.bundle.min.js?8fe7b284:6)
    at activity_topnav.bundle.min.js?8fe7b284:6
    at t.a (activity_topnav.bundle.min.js?8fe7b284:6)
    at g (activity_topnav.bundle.min.js?8fe7b284:6)
    at activity_topnav.bundle.min.js?8fe7b284:6
    at dispatch (activity_topnav.bundle.min.js?8fe7b284:6)
    at activity_topnav.bundle.min.js?8fe7b284:6
p @ activity_topnav.bundle.min.js?8fe7b284:6
(anonymous) @ activity_topnav.bundle.min.js?8fe7b284:6
t.a @ activity_topnav.bundle.min.js?8fe7b284:6
g @ activity_topnav.bundle.min.js?8fe7b284:6
(anonymous) @ activity_topnav.bundle.min.js?8fe7b284:6
dispatch @ activity_topnav.bundle.min.js?8fe7b284:6
(anonymous) @ activity_topnav.bundle.min.js?8fe7b284:6
Promise.then (async)
value @ activity_topnav.bundle.min.js?8fe7b284:6
e.notifyAll @ react_prod_combined.min.js?f57646b3:2
close @ react_prod_combined.min.js?f57646b3:4
closeAll @ react_prod_combined.min.js?f57646b3:5
perform @ react_prod_combined.min.js?f57646b3:5
s @ react_prod_combined.min.js?f57646b3:4
perform @ react_prod_combined.min.js?f57646b3:5
batchedUpdates @ react_prod_combined.min.js?f57646b3:4
i @ react_prod_combined.min.js?f57646b3:4
_renderNewRootComponent @ react_prod_combined.min.js?f57646b3:4
_renderSubtreeIntoContainer @ react_prod_combined.min.js?f57646b3:4
render @ react_prod_combined.min.js?f57646b3:4
h @ activity_topnav.bundle.min.js?8fe7b284:6
(anonymous) @ activity_topnav.bundle.min.js?8fe7b284:6
n @ activity_topnav.bundle.min.js?8fe7b284:1
(anonymous) @ activity_topnav.bundle.min.js?8fe7b284:1
(anonymous) @ activity_topnav.bundle.min.js?8fe7b284:1
global_legacy_combined.min.js?99588c53:12 POST https://api.vimeo.com/ablincoln/fatal_attraction?type=pageview&target=%2Foauth%2Fauthorize%3Fresponse_type%3Dcode%26client_id%3D9619cde3ff2f2b9f65be63a6f976bdd20956e322%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A8080%252Fvimeo-redirect%26scope%3Dpublic%2520private%26state%3Dabc 404 (Not Found)

brucemcpherson avatar May 12 '19 12:05 brucemcpherson

Can you share some of the code you are using and/or what endpoint you are hitting to get these errors?

mandeldl avatar May 13 '19 15:05 mandeldl

Actually this error is not from any of my pages, but from your consent page. So it doesnt affect my app at all (which is working fine). Just for your info that there's something wrong there. image

brucemcpherson avatar May 25 '19 14:05 brucemcpherson