@speckle/ui-components-nuxt
v2.31.11
Published
Companion Nuxt module for @speckle/ui-components
Readme
ui-components-nuxt
Nuxt v3 module that sets up @speckle/ui-components auto-importing like any other components you might have in your ./components folder. You also get properly typed components in your templates if you use Volar.
Setup
Make sure you've got
@speckle/ui-componentsinstalled and set upInstall
@speckle/ui-components-nuxtand add it to your nuxt modules innuxt.config.tsAdd the following to your
build.transpilearray in your nuxt config:
// nuxt.config.js
export default {
build: {
transpile: [
'@headlessui/vue',
/^@heroicons\/vue/,
'@vueuse/core',
'@vueuse/shared',
'@speckle/ui-components',
'v3-infinite-loading'
]
}
}- Add the following to your
vite.resolve.dedupearray in your nuxt config:
// nuxt.config.js
export default {
vite: {
resolve: {
dedupe: ['vee-validate']
}
}
}This will ensure that some dependencies are transpiled properly so that they work correctly both during SSR & CSR.
