AD007xD
AD007xD
NNuxt
Created by AD007xD on 4/23/2025 in #❓・help
Need to add shadcn to project
after removing those two properties shadcn is throwing an error in line 14 @kapa.ai
13 replies
NNuxt
Created by AD007xD on 4/23/2025 in #❓・help
Need to add shadcn to project
@kapa.ai I ran npm install --save-dev shadcn-nuxt but now im getting an error in line 10 saying Object literal may only specify known properties, and 'target' does not exist in type 'InputConfig<NuxtConfig, ConfigLayerMeta>'.ts(2353) (property) target: string for reference, this is my nuxt.config.ts file
.ts
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
experimental: {
payloadExtraction: true
},
nitro: {
compressPublicAssets: true,
},
ssr:true,
target: 'static',
buildModules: [
'@nuxtjs/tailwindcss',
'@nuxtjs/robots',
],
modules: ['@nuxtjs/tailwindcss', '@nuxtjs/robots', 'shadcn-nuxt'],
shadcn: {
prefix: 'shadcn',
},
subFolders: true,
})
.ts
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
experimental: {
payloadExtraction: true
},
nitro: {
compressPublicAssets: true,
},
ssr:true,
target: 'static',
buildModules: [
'@nuxtjs/tailwindcss',
'@nuxtjs/robots',
],
modules: ['@nuxtjs/tailwindcss', '@nuxtjs/robots', 'shadcn-nuxt'],
shadcn: {
prefix: 'shadcn',
},
subFolders: true,
})
13 replies
NNuxt
Created by AD007xD on 3/18/2025 in #❓・help
Help with images
@kapa.ai what does "optimized by build tools" mean
8 replies