-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poor typescript examples #470
Comments
Thank you for your feedback @Pacheco95 If you have a better example, feel free to open a pull request, contributions and new contributors are welcome 😊 |
Hi @Pacheco95 |
I'll check it out! |
@Geminii it is a very good example. Will be nice to start a PR with it. |
I'm not an expert with Nuxt and Typescript, and in my opinion guide, examples, and explanation of using Vuex with Nuxt and Typescript are just very very very confusing and disconnected. I dread the fact I tried in the first place. Not sure if after two years since this issue was open, other developers faced the same issues, but I did. If there's anything I can do to help, please let me know, so far it was just a world of pain. |
The tricky piece is that vuex wasn't built with typing in mind. You can use Pinia (or if you need to stay with vuex, feel free to try my own project https://typed-vuex.roe.dev/ which was created to address this issue in a different way). |
I'm trying to learn how to do vuex things in a typescript way, but having too much pain to find useful guides and examples.
The examples provided in https://github.com/nuxt/typescript/tree/master/examples is too poor and not useful.
Can you make some effort to improve the examples with real world usage?
The best guide I have found was this article https://blog.logrocket.com/how-to-set-up-and-code-nuxt-js-apps-fully-in-typescript/
The text was updated successfully, but these errors were encountered: