[Vuejs]-I want to use pinia state management in my vue 3 project

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.

0👍

Change src/stores/cart to @/src/stores/cart

Leave a comment