FearArt
FearArt
NNuxt
Created by FearArt on 11/25/2024 in #❓・help
Import error
@kapa.ai
14 replies
NNuxt
Created by FearArt on 11/25/2024 in #❓・help
Import error
changing to string don't help
import { defineMongooseModel } from "#nuxt/mongoose";

export const LogModel = defineMongooseModel({
name: 'Log',
schema: {
initiator: {
type: 'string',
required: true,
},
target: {
type: 'string',
required: true,
},
reason: 'string',
argument: 'string',
logType: 'string',
date: Date
}
})
import { defineMongooseModel } from "#nuxt/mongoose";

export const LogModel = defineMongooseModel({
name: 'Log',
schema: {
initiator: {
type: 'string',
required: true,
},
target: {
type: 'string',
required: true,
},
reason: 'string',
argument: 'string',
logType: 'string',
date: Date
}
})
14 replies
NNuxt
Created by FearArt on 11/25/2024 in #❓・help
Import error
@kapa.ai Import works fine in first file so should be an error with module
14 replies
NNuxt
Created by FearArt on 11/22/2024 in #❓・help
Using JWT in middleware
@kapa.ai i don't have user composable
11 replies
NNuxt
Created by FearArt on 11/22/2024 in #❓・help
Using JWT in middleware
i don't have user composable
11 replies
NNuxt
Created by FearArt on 9/1/2024 in #❓・help
Shitcode Fix
Any clues?
2 replies