Skip to content

How to add a third-party custom element? #18196

Discussion options

You must be logged in to vote

You can do it like this:

import { defineNuxtConfig } from 'nuxt3'

export default defineNuxtConfig({
  build: {
    transpile: ['vaadin']
  },
  vue: {
    compilerOptions: {
      isCustomElement: tag => ['vaadin-checkbox'].includes(tag)
    }
  }
})

~/plugins/components.client.ts

import '@vaadin/vaadin-checkbox'
export default () => {}

Replies: 0 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@dammy001
Comment options

@jeremeevans
Comment options

Comment options

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

@danielroe
Comment options

@jeremeevans
Comment options

Answer selected by jeremeevans
Comment options

You must be logged in to vote
2 replies
@jeremeevans
Comment options

@eMeRiKa13
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 participants