I've been working on a micro-frontend project, utilizing vue 3 and single-spa 5.9.3. Recently, I attempted to update one of the npm packages for a Micro-frontend to the latest release. The build process went smoothly, but it resulted in the following error:
"TypeError: application '@myapp/my-module' died in status LOADING_SOURCE_CODE: Cannot read properties of undefined (reading 'meta')
at autoPublicPath (http://localhost:9200/js/app.js:48439:32)
at Object../node_modules/systemjs-webpack-interop/auto-public-path/2.js (http://localhost:9200/js/app.js:48418:1)
at __webpack_require__ (http://localhost:9200/js/app.js:75668:33)
at http://localhost:9200/js/app.js:76740:11
at Object.<anonymous> (http://localhost:9200/js/app.js:76744:12)
at Object.execute (https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1c6f656f687971766f5c2a322b322c">[email protected]</a>/dist/extras/amd.min.js:1:529)
at i (https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d2a1aba1a6b7bfb8a192e4fce5fce2">[email protected]</a>/dist/system.min.js:4:4539)
at e (https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e6d676d6a7b73746d5e283029302e">[email protected]</a>/dist/system.min.js:4:5014)
at https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b8cbc1cbccddd5d2cbf88e968f9688">[email protected]</a>/dist/system.min.js:4:5019"
The dependencies listed in my package.json for '@myapp/my-module' are as follows:
"dependencies": {
"core-js": "^3.6.5",
"axios": "^0.24.0",
"object-path": "^0.11.8",
"quasar": "^2.5.5",
"single-spa-vue": "^2.1.0",
"vue": "^3.2.29",
"vue-i18n": "^9.1.6",
"vue-inline-svg": "^3.1.0",
"vue-router": "^4.0.0-0",
"vue-axios": "^3.4.0",
"vuex": "^4.0.0-0"
},
...
...the issue seems to stem from an incompatibility between webpack versions 5 and 4, although finding a resolution isn't straightforward from that end.