ucdavis / wayfinding

jQuery plugin for interactive svg maps
101 stars 58 forks source link

Not able to add pan to zoom #60

Open PMistry123 opened 5 years ago

PMistry123 commented 5 years ago

Hello,

I have set pinch to zoom: true and added following line of code, It is giving me syntax errors on import , I am not sure why, I am on version 2.0.0 import as $ from 'jquery'; import as Panzoom from 'jquery.panzoom';

Thanks

skyrbe commented 5 years ago

What are the syntax errors?

PMistry123 commented 5 years ago

unexpected token import

skyrbe commented 5 years ago

This is typically the case when babel (the transpiler for es6) is missing. Check if you have .babelrc file and your node modules contain babel. Or you can directly link to babel in your script tag as well.