Timo
Timo
NNuxt
Created by Timo on 2/8/2025 in #❓・help
Nuxt layers relative path
@Kal thanks for the reply. Making a folder with empty file works ofcource but i need the model itself.. an empty file won't work. I actually accidentally figured it out but still have some questions.. Importing it like so: import TranslationModel from '~/server/models/translation'; won't work. But an import like so: import TranslationModel from '../../models/translation'; will work. I'm not exactly sure what the difference is however.. except the ~or @ indicates a relative path
15 replies
NNuxt
Created by Timo on 2/8/2025 in #❓・help
Nuxt layers relative path
@kapa.ai all 3 methodes don't seem to work..
15 replies