ucdavis/wayfinding

Not able to add pan to zoom

Opened this issue · 3 comments

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

What are the syntax errors?

unexpected token import

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.