Vue Tutorial: Using Vuex with TypeScript

  Рет қаралды 27,918

OverSeas Media

OverSeas Media

Күн бұрын

Пікірлер: 58
@undefined418
@undefined418 2 жыл бұрын
Very Very helpful, I came from VueJS without Typescript, and Vuex got me going again. This video made me help understand not only Vuex again, but also Typescript. Thank you!
@OverSeasMedia
@OverSeasMedia 2 жыл бұрын
I am glad this was helpful
@mustafa_sakalli
@mustafa_sakalli 3 жыл бұрын
this tutorial really dope dude! Other giant tech channels just copy pasting throughout the video but you give the idea and implementation literally 'hands-on'. Big kudos!
@josemanuelrocarodriguez2325
@josemanuelrocarodriguez2325 3 жыл бұрын
you saved me a week, one of the best resources I could find about this topic
@OverSeasMedia
@OverSeasMedia 3 жыл бұрын
I'm really glad this was actually helpful to someone, cheers mate :)
@dennisgonzales9521
@dennisgonzales9521 3 жыл бұрын
thanks for the tutorial I literally learned VUE, VUEX with Typescript in one day!
@jegedeayodeji3306
@jegedeayodeji3306 3 жыл бұрын
Simple, short and straight to the point. Thanks man!
@zeropublix
@zeropublix 3 жыл бұрын
Thanks alot for this video. I wasn't able to add proper typings to my vuex store and i couldn't find any good guides. I was now able to resolve that
@QuentinWatt
@QuentinWatt 2 жыл бұрын
Did you only provide the starting code in the repo?
@lazrus_lobo
@lazrus_lobo 2 жыл бұрын
love it the way you make the code
@adelhishem1
@adelhishem1 4 жыл бұрын
Welcome back! long time no see.
@OverSeasMedia
@OverSeasMedia 4 жыл бұрын
Thank you my dude :)
@LordY971
@LordY971 3 жыл бұрын
Such a great video. I was looking for explanations and I got it all!!! thx man
@abdulmelikbekmez7765
@abdulmelikbekmez7765 3 жыл бұрын
So much valuable content. Nice work
@MaxSeipio
@MaxSeipio 3 жыл бұрын
Hey, simple and well explained. thanks
@adityakadam2256
@adityakadam2256 3 жыл бұрын
amazing video. You saved my day. Thanks :)
@aliabbasi6359
@aliabbasi6359 3 жыл бұрын
Hello guys. I have a problem with using mapstate in typescript. Can any one help me? How should I define state type in mapstate object inside computed??
@vitiok78
@vitiok78 3 жыл бұрын
Very helpful video! Great! Actually you can go a little bit further and make your modules namespaced. It will have a great benefit when your state, actions, getters and mutations have the same name in different modules. Like in CRUD, for example.
@Chryst1anFRz
@Chryst1anFRz 3 жыл бұрын
This part of the code shown at 17:46 doesnt work. mounted: { setTimeout( () => { this.username = "Changed heheheh" }, 3000) } Syntax Error: C:\Projetos\Vue\Aprendizado\vue_ts\src\App.vue: Unexpected token I tried doing this: setTimeout({ ... }, 3000) but it also says theres errors in my code. This is my package.json: { "name": "vue_ts", "version": "0.1.0", "private": true, "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint" }, "dependencies": { "core-js": "^3.6.5", "vue": "^2.6.11", "vue-class-component": "^7.2.3", "vue-property-decorator": "^9.1.2", "vue-router": "^3.2.0", "vuex": "^3.4.0" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^2.33.0", "@typescript-eslint/parser": "^2.33.0", "@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-eslint": "~4.5.0", "@vue/cli-plugin-router": "~4.5.0", "@vue/cli-plugin-typescript": "~4.5.0", "@vue/cli-plugin-vuex": "~4.5.0", "@vue/cli-service": "~4.5.0", "@vue/eslint-config-typescript": "^5.0.2", "eslint": "^6.7.2", "eslint-plugin-vue": "^6.2.2", "typescript": "~3.9.3", "vue-template-compiler": "^2.6.11" } } Do you have any tips?
@Chryst1anFRz
@Chryst1anFRz 3 жыл бұрын
Had to do this: mounted: { randomMethodName() { setTimeout( () => { console.log("21") }, 3000) } }
@Chryst1anFRz
@Chryst1anFRz 3 жыл бұрын
That still doesnt work... I give up ERROR in C:/Projetos/Vue/Aprendizado/vue_ts/src/main.ts(11,18): 11:18 No overload matches this call. Overload 1 of 2, '(tag?: string | VueConstructor | AsyncComponentPromise | AsyncComponentFactory | FunctionalComponentOptions | ComponentOptions | (() => Component) | undefined, children?: VNodeChildren): VNode', gave the following error. Argument of type '{ name: string; components: {}; computed: { helloMessage: { get(): any; }; username: { get(): any; set(value: any): void; }; }; mounted: { dumb(): void; }; }' is not assignable to parameter of type 'string | VueConstructor | AsyncComponentPromise | AsyncComponentFactory | FunctionalComponentOptions | ComponentOptions | (() => Component) | undefined'. Type '{ name: string; components: {}; computed: { helloMessage: { get(): any; }; username: { get(): any; set(value: any): void; }; }; mounted: { dumb(): void; }; }' is not assignable to type 'ComponentOptions'. Types of property 'mounted' are incompatible. Type '{ dumb(): void; }' is not assignable to type '() => void'. Type '{ dumb(): void; }' provides no match for the signature '(): void'. Overload 2 of 2, '(tag?: string | VueConstructor | AsyncComponentPromise | AsyncComponentFactory | FunctionalComponentOptions | ComponentOptions | (() => Component) | undefined, data?: VNodeData | undefined, children?: VNodeChildren): VNode', gave the following error. Argument of type '{ name: string; components: {}; computed: { helloMessage: { get(): any; }; username: { get(): any; set(value: any): void; }; }; mounted: { dumb(): void; }; }' is not assignable to parameter of type 'string | VueConstructor | AsyncComponentPromise | AsyncComponentFactory | FunctionalComponentOptions | ComponentOptions | (() => Component) | undefined'. Type '{ name: string; components: {}; computed: { helloMessage: { get(): any; }; username: { get(): any; set(value: any): void; }; }; mounted: { dumb(): void; }; }' is not assignable to type 'ComponentOptions'. 9 | router, 10 | store, > 11 | render: h => h(App) | ^ 12 | }).$mount('#app') 13 | Version: typescript 3.9.9 Time: 122ms
@ICSVortex-DCS
@ICSVortex-DCS 4 жыл бұрын
And thank for code and terminal size. I chexk videos on my rog phone 3. Very pleasant for my eyes
@OverSeasMedia
@OverSeasMedia 4 жыл бұрын
I did not actually knew anyone would watch this on a small size screen . From now on I will try to make the font as big as possible. Thanks mate for the comment :)
@ICSVortex-DCS
@ICSVortex-DCS 4 жыл бұрын
@@OverSeasMedia orcourse, people are watching a lot i think))) especially, devs in bed 🛌
@PabloGnesutta
@PabloGnesutta 3 жыл бұрын
Great tutorial man!! It would be great if the repo you linked was actually what you showed, but it is basically a boilerplate project. Thanks anyway!
@Yorgarazgreece
@Yorgarazgreece 3 жыл бұрын
I love how he randomly curses when theres a fuckup hahahahaha insta-subbed
@DhiaMagicien
@DhiaMagicien 4 жыл бұрын
Finally a new video :D Welcome back bro
@OverSeasMedia
@OverSeasMedia 4 жыл бұрын
Ayyyeee thanks mate :))
@TheReaper215
@TheReaper215 3 жыл бұрын
Can you share the github repo please ^^
@МатвейДенисов-т2к
@МатвейДенисов-т2к 2 жыл бұрын
great video man
@Rmoore08
@Rmoore08 3 жыл бұрын
Is there anyway I can download the code?
@FranciscoMendoza-xu3if
@FranciscoMendoza-xu3if 2 жыл бұрын
Very useful video
@jbuist
@jbuist 3 жыл бұрын
Great tutorial! That's everything I need to know to get TS and Vuex going as a complete newcomer. Only problem I had: The github repo is, uh, blank. It looks like a stock Vue project to me. None of the video code was in there.
@GuardianOfAbyss
@GuardianOfAbyss 2 жыл бұрын
I also wanted to take a look of the final product but the repo is empty. Anyway, great video.
@fatih.tavukcu
@fatih.tavukcu 2 жыл бұрын
Yeah, sadly he forgot to push his changes :(
@aliabbasi6359
@aliabbasi6359 3 жыл бұрын
Thank you. It was great
@JanKowalski-dm1mt
@JanKowalski-dm1mt 4 жыл бұрын
We missed you !
@ICSVortex-DCS
@ICSVortex-DCS 4 жыл бұрын
Great stuff bro, thx. Typescript is a cool shit)))
@Anandhanedom
@Anandhanedom 2 жыл бұрын
Thanks for the share!
@toufik4044
@toufik4044 4 жыл бұрын
iwa 3la slamtek, fin mchiti ? Thanks man, for your tuts.
@ayoub1024
@ayoub1024 4 жыл бұрын
i just discovered you're moroccan "Yayli 80 Yayli 80D, Good luck bro !
@iSam21
@iSam21 3 жыл бұрын
Me too ! i was shocked 🤣😂
@mehdilee6737
@mehdilee6737 4 жыл бұрын
nice one as always
@MVRC95
@MVRC95 3 жыл бұрын
when you typed this.$store.state.xxx the xxx not appear , it works but no recommendations
@michaelhoward9928
@michaelhoward9928 3 жыл бұрын
Any luck?
@MVRC95
@MVRC95 3 жыл бұрын
@@michaelhoward9928 he is using webstorm, in vs code didn't works.
@alice_2302x
@alice_2302x 2 жыл бұрын
Thanks! In index.ts I have the following error on "Vue.use(Vuex)": Property 'use' does not exist on type 'typeof import("C:/Users/AFXXX/Documents/techradar/node_modules/vue/dist/vue")' How did you solve this?
@alice_2302x
@alice_2302x 2 жыл бұрын
main.ts: app.use(store); ?
@Skif769
@Skif769 2 жыл бұрын
bro more video's about this thema pls
@mohamedjamoun694
@mohamedjamoun694 3 жыл бұрын
ayli yayliii, mal7bib malo 3liya
@ICSVortex-DCS
@ICSVortex-DCS 4 жыл бұрын
Btw, i am currently work on website, based on react/redux and typescript. Would be great to see something related to react. Also, a small tip about react. There is a cool react framework, called Devextreme...)))
@buddhanag4987
@buddhanag4987 3 жыл бұрын
Things changed in vue3
@muhammadammar5426
@muhammadammar5426 3 жыл бұрын
This one applicable for vue 3?
@dasvas9383
@dasvas9383 3 жыл бұрын
thanks!
@Nurtylek
@Nurtylek 4 жыл бұрын
I like your explanation hhaha, like wtf hahahah
@OverSeasMedia
@OverSeasMedia 4 жыл бұрын
Haha thanks mate :)
@mberoakoko24
@mberoakoko24 3 жыл бұрын
11:12 wagwan 😀
@daniilgri8737
@daniilgri8737 4 жыл бұрын
And what a fu.... mmmmmm ;D
Vue 3: Reactivity Made Easy (ref, reactive, toRefs... oh my!)
13:04
Program With Erik
Рет қаралды 50 М.
How to use generics in TypeScript
11:46
Andrew Burgess
Рет қаралды 37 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Vue JS 3: Composition API for State Management (Vuex Killer?)
30:04
Make Apps with Danny
Рет қаралды 55 М.
Vue 3 фундаментальный курс от А до Я
3:01:26
Vue router. Как правильно работать с роутингом
7:58
Лабіринт Знання
Рет қаралды 17 М.
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,6 МЛН
New component patterns for Vue 3
21:12
Vue Mastery
Рет қаралды 38 М.
Learn Vuex in 30 MINUTES! (Vue JS 3)
32:12
Make Apps with Danny
Рет қаралды 127 М.
5 AMAZING terminal applications you didn't know you needed
8:40
Nick Skriabin
Рет қаралды 3,5 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН