Disabling alias "absolute path" import warning

Is it possible?
warning: rewrote @shared/ui/theme/tailwind.css to ../shared/ui/theme/tailwind.css but was not an abolute path and was not handled by other plugins. This will lead to duplicated modules for the same path. To avoid duplicating modules, you should resolve to an absolute path.
warning: rewrote @shared/ui/theme/tailwind.css to ../shared/ui/theme/tailwind.css but was not an abolute path and was not handled by other plugins. This will lead to duplicated modules for the same path. To avoid duplicating modules, you should resolve to an absolute path.
4 Replies
Cue
Cue2mo ago
I don’t think all warnings are designed to be ignored. Is this an alias you’ve configured yourself and is there any reason you cannot point it to an absolute path?
αℓєχ3025
αℓєχ3025OP2mo ago
Yeah, I've creted it myself, I need to point to a directory outside the nuxt project.
Cue
Cue2mo ago
Have you tried using node’s path module to point to the directory?
αℓєχ3025
αℓєχ3025OP2mo ago
That worked ✅
Want results from more Discord servers?
Add your server