(On my phone, so this is going to suck) I'm not in a position to look at this deeper, however, the error you're seeing is likely coming from elsewhere.
The importScripts() function works by creating a global script element within the document head for the given URL (i.e. it is evaluated globally). The imported script should have no issues finding whatever it needs.
Your problem likely stems from:
- Calling importScripts() from a <<script>> macro. It should be invoked within a script section.
- Not waiting for it to load before attempting to use it. Loading a script from an external source is always an asynchronous operation, so you must wait for it to finish before you may use it.
Since you're using Tweego, I'd simply wrap Vue.js, to give it the environment it expects, and include it within the sources you feed to Tweego, so that it loads synchronously. For example:
(function (define, exports) {
/* LIBRARY GOES HERE */
}).call(window);
If you want to continue to load it asynchronously, then you'll need to delay your use of it until it's loaded. One way to do this would be to use the Promise returned by the call to importScripts().