We've been pushing updates successfully to our Vue applications in recent weeks and after some very minimal changes yesterday (property name changes and removing some purely semantic characters) we are experiencing the following error:
Uncaught TypeError: Object(...) is not a function at Module.fae3 (XCustomerServiceOptionsLibrary.umd.js:53612) at n (XCustomerServiceOptionsLibrary.umd.js:30) at 0012 (XCustomerServiceOptionsLibrary.umd.js:94) at XCustomerServiceOptionsLibrary.umd.js:11 at XCustomerServiceOptionsLibrary.umd.js:3 at Object.e977 (XCustomerServiceOptionsLibrary.umd.js:1) at o (app.2df3392d.js:formatted:39) at CustomerServiceManagement.umd.js:3 at Object.7091 (CustomerServiceManagement.umd.js:1) at o (app.2df3392d.js:formatted:39)
We debugged the code and found the error occurring on this line:
We build Vue components into libraries, push them to a Verdaccio repo, and then add them as dependencies into a larger project. The library in questions (XCustomerServiceOptionsLibrary) and the larger Vue application build fine, but produce the above error when serving.
I am starting to think there were a version change to one of our Vue dependencies that is causing issues. Here are our package.json files: