I'm struggling with getting my Vue code to transpile properly due to some issues. I have resorted to loading Vue and other packages directly using CDN links, like this:
<script src="https://cdnjs.cloudflare.com/ajax/libs/survey-vue/1.8.33/survey.vue.min.js"</script>
In a typical Vue application, I would import the Survey package like this:
import * as Survey from "survey-vue";
window.survey = new Survey.Model(json);
However, when I try to reference Survey
without importing it after adding the script above, I get an error saying 'Survey object is undefined'.
Is there a way to achieve the same functionality without using imports since I am using CDN links in this case?