Skip to content

Dynamic import short syntax doesn't work at main.ts #535

Closed Answered by frolovsky
frolovsky asked this question in Q&A
Discussion options

You must be logged in to vote

I solve it. Problem in auth service in our project. We place him in separated service, but he's using inside App.vue component and into chunk with App.vue and other. I put him in separated chunk. If some got same problem, temp fix for this:

 rollupOptions: {
      // ...
      output: {
        // ...
        manualChunks(id) {
          if (id.includes("services/auth")) { // part of path your auth service
            return "auth";
          }
        },
      },
    },

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by frolovsky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant