Skip to content

ViteJS configuration in VuePress with Quasar leading to "Component is missing template or render function." #535

Answered by meteorlxy
chintan-mishra asked this question in Q&A
Discussion options

You must be logged in to vote

Using vuePluginOptions should work 🤔 . If it did not work, there might be something related to how vite resolves nested plugins.

Could you help to test if this can work properly:

Move createVuePlugin() from createPlugin to createDev, and put it before createPlugin():

export const createPlugin = ({
  app,
  options,
  isServer,
  isBuild,
}: {
  app: App
  options: ViteBundlerOptions
  isServer: boolean
  isBuild: boolean
}): Plugin[] => [
-  // official vue plugin
-  createVuePlugin(options.vuePluginOptions),

  // vuepress custom plugin
  createConstantsReplacementPlugin(app),
  createMainPlugin({
    app,
    options,
    isServer,
    isBuild,
  }),
  createWorkaroundPlugin(),
]
export…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@meteorlxy
Comment options

@chintan-mishra
Comment options

@meteorlxy
Comment options

Answer selected by chintan-mishra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants