joeldenning / vite-single-spa-example

MIT License
63 stars 25 forks source link

throw error "single-spa minified message #37" and warn "single-spa minified message #30:" #11

Closed CHENQIKUAI closed 1 year ago

CHENQIKUAI commented 2 years ago

I clone the project and run "npm install && npm run build && npx serve dist -p 8080". Setting proxy like below in "root config project"

"/app": {
    target: "http://localhost:8080",
    pathRewrite: {
      "^/app": "",
    },
  },

Register single-app application with "/api/assets/index.xxx.js", and log the module.

And then I get error like this: image

How to fix the problem?