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

Error if using videojs.markers.js locally #84

Open
kgero opened this issue Apr 7, 2018 · 2 comments
Open

Error if using videojs.markers.js locally #84

kgero opened this issue Apr 7, 2018 · 2 comments

Comments

@kgero
Copy link

kgero commented Apr 7, 2018

If I reference this way:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link href="http://vjs.zencdn.net/6.6.3/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/6.6.3/video.js"></script>
<script src="https://rawgithub.com/spchuang/videojs-markers/master/dist/videojs-markers.js"></script>
<link href="https://rawgithub.com/spchuang/videojs-markers/master/dist/videojs.markers.css" rel="stylesheet">

I can use this plugin just fine. (And it's great! Love it.) But if I try to reference it locally, in the way suggested in the documentation:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link href="http://vjs.zencdn.net/6.6.3/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/6.6.3/video.js"></script>
<script src='videojs-markers/src/videojs.markers.js'></script>

I get this error:

Uncaught SyntaxError: Unexpected identifier

which is referencing this line in videojs.marker.js:

import videojs from 'video.js';

I am trying not to use npm or anything; I'm not sure why exactly why it's giving me a syntax error.

@buddhashrestha
Copy link

I too have the same issue. Any updates?

@bcoletta
Copy link

Instead of
<script src='videojs-markers/src/videojs.markers.js'></script>
try using
<script src='videojs-markers/dist/videojs.markers.js'></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants