Not able to add pan to zoom
Opened this issue · 3 comments
PMistry123 commented
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
What are the syntax errors?
PMistry123 commented
unexpected token import
skyrbe commented
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.