Yesterday, I posted a question about invoking an external Javascript in a Vue component.
User Mina was able to solve my problem in no-time and provided an updated codesandbox. However, after copy/pasting the exact code in my own project, it's still not working in my own Visual Studio Code environment:
RunClustering.vue?28ac:37 Uncaught (in promise) TypeError: this.clus.agglomerate is not a function
at Proxy.runClu (RunClustering.vue?28ac:37:1)
at Proxy.mounted (RunClustering.vue?28ac:55:1)
at callWithErrorHandling (runtime-core.esm-bundler.js?d2dd:155:1)
at callWithAsyncErrorHandling (runtime-core.esm-bundler.js?d2dd:164:1)
at hook.__weh.hook.__weh (runtime-core.esm-bundler.js?d2dd:2684:1)
at flushPostFlushCbs (runtime-core.esm-bundler.js?d2dd:341:1)
at flushJobs (runtime-core.esm-bundler.js?d2dd:395:1)
Also, when I add:
console.log('runclustering', clus.EUCLIDIAN_DISTANCE);
It shows output in the online code sandbox, but again an undefined in my VSC application.