Timo
Nuxt layers relative path
I have 2 nuxt projects, project 1 and project 2.
Project 1 uses the to utilize this project as a layer.
Inside the server folder of project2 I have a folder for database models that get used in the api. This all works perfectly fine when i'm running project2 as a dev server, but when starting up project1 it can't load these models.
Looking at the error it makes sense because my project1 does not have a models folder inside the server folder and with the import using a relative path it makes sense.
Is there any way I can make it so this import refers to my project2 folder instead of project1?
15 replies