1👍
If you’re using an IDE like IntelliJ, the linter will help you see if the reference is good or not.
As mentioned by Estus Flask, you might try using dots in your path. My imports usually look like:
import { useCartStore } from "./src/stores/cart";
Also, if possible, mark the ‘src’ folder as a source folder in your IDE.
- [Vuejs]-How to reinitialize vue.js's getter and setter bindings?
- [Vuejs]-Cannot read component data within v-for scope
Source:stackexchange.com