I am trying to use swup in meteor js framework. I added the script tag that contains unpkg link for swup in main.html and initialized Swup in Meteor.startup function of main.js. But when i run the app, it is throwing "Cannot set property 'responseURL' of null" error.
in main.html:
<script src="unpkg.com/swup@latest/dist/swup.min.js"></script>
<script>
const swup = new Swup();
</script>
And added swup id to layout.html which is like the container in which all routing occurs.
I just recently started to work on Meteor, so i am a bit confused. I would be glad, if anyone could help me in initializing and setting up swup. Thanks in Advance.