Skip to content

unable to import pinia store in vue 3 ts , vite 3 #1461

Discussion options

You must be logged in to vote

You need to define an paths-alias for typescript in tsconfig.json. This has nothing to do with pinia.

https://stackoverflow.com/questions/66043612/vue3-vite-project-alias-src-to-not-working

        "paths": {
            "@/*": [
                "src/*"
            ]
        },

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AliQ80
Comment options

Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants