Timo
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 path15 replies