6

I have a micro-frontend project using vue 3. I have done yarn install and yarn serve:standalone. But I have an error like this

enter image description here

this is my vue.config.js

module.exports = {
  lintOnSave: false,
  configureWebpack: {
    devServer: {
      headers: {
        "Access-Control-Allow-Origin": "*",
      },
      disableHostCheck: true,
      sockPort: 9003,
      sockHost: "localhost",
      https: true,
      port: 9003,
    },
    externals: ["vue-router"],
  },
  filenameHashing: false,
};
Nico Sauza
  • 339
  • 2
  • 7

2 Answers2

0

Did you install vue router npm install vue-router@next ?

Kate P
  • 37
  • 8
0

if you are not using a bundler (webpack/vue cli/vite/...) you should use router via direct download or cdn

Rassul
  • 41
  • 4
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – StevenSiebert Sep 02 '21 at 05:15