Open snifter opened 2 years ago
My mistake, I was on the wrong tab in my browser and mistook this as the single-spa.js.org repo. Reopening.
I have similar error with Vue 2 TypeError: application '@foo/new-application' died in status LOADING_SOURCE_CODE: undefined is not an object (evaluating '__webpack_require__.y.meta')
I ran into this problem today also. I tried following the instructions for systemjs-interop, thinking that might have been the issue, but they did not help to resolve it. Then I tried with npx
@4
, @3
and @2
and all versions produce the same error, so I went looking at vue-cli-plugin-single-spa
.
This comment seems to be the solution.
I've run into this problem. I've found that it's a webpack problem. After some research I've managed to get it to work.
Your vue.config.js
should look like this:
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
transpileDependencies: true,
configureWebpack: {
output: {
libraryTarget: "system",
},
},
});
Vue application does not work. During activation in root-config followed exception is thrown.
App is created with:
The same is for Vue2. For React everything works fine.