[{"data":1,"prerenderedAt":289},["ShallowReactive",2],{"\u002Fblog\u002Ftutorial-vue-3-apps-with-devtools":3,"\u002Fblog\u002Ftutorial-vue-3-apps-with-devtools-neighbours":260},{"id":4,"title":5,"body":6,"date":243,"description":244,"draft":245,"draftReasons":246,"extension":247,"meta":248,"navigation":124,"path":253,"private":245,"seo":254,"sitemap":255,"stem":256,"tags":257,"updatedAt":246,"__hash__":259},"blog\u002Fblog\u002Ftutorial-vue-3-apps-with-devtools.md","Tutorial: Vue 3 Apps with DevTools",{"type":7,"value":8,"toc":234},"minimark",[9,14,19,23,26,29,40,44,47,86,90,93,142,145,154,159,162,174,186,190,193,200,220,223,227,230],[10,11],"youtube",{"id":12,"title":13},"mOtyuLj0ExI","Tutorial: How to Setup Vue 3 Apps with DevTools",[15,16,18],"h2",{"id":17},"introduction","Introduction",[20,21,22],"p",{},"What's up everyone? Today I am here to talk with you about something near and dear to almost every Vue developer's hearts. DevTools.",[20,24,25],{},"While most people typically install the Vue DevTools, currently the support for Vue 3 is still in development, so this makes it a little bit trickier since sometimes the build won't work.",[20,27,28],{},"As a result, it may be faster to build the latest version of DevTools locally rather than wait for the next publishing cycle",[20,30,31,32,39],{},"There is a ",[33,34,38],"a",{"href":35,"rel":36},"https:\u002F\u002Fchrome.google.com\u002Fwebstore\u002Fdetail\u002Fvuejs-devtools\u002Fljjemllljcmogpfapbkkighbhhppjdbg?hl=en",[37],"nofollow","beta version in the marketplace",", but in the event you're having issues with it detecting your Vue instance on a Vue 3 CLI scaffolded project, this",[15,41,43],{"id":42},"prerequities","Prerequities",[20,45,46],{},"Before we get started, you should have the following prerequisites:",[48,49,50,58,65,72,79],"ul",{},[51,52,53,54],"li",{},"Node.js LTS (v12) - ",[33,55,56],{"href":56,"rel":57},"https:\u002F\u002Fnodejs.org\u002Fen\u002F",[37],[51,59,60,61],{},"yarn Classic - ",[33,62,63],{"href":63,"rel":64},"https:\u002F\u002Fclassic.yarnpkg.com\u002Fen\u002Fdocs\u002Finstall\u002F#mac-stable",[37],[51,66,67,68],{},"Chrome - ",[33,69,70],{"href":70,"rel":71},"https:\u002F\u002Fwww.google.com\u002Fchrome\u002F",[37],[51,73,74,75],{},"Vue CLI - ",[33,76,77],{"href":77,"rel":78},"https:\u002F\u002Fcli.vuejs.org\u002F",[37],[51,80,81,82],{},"Vue.js DevTools - ",[33,83,84],{"href":84,"rel":85},"https:\u002F\u002Fgithub.com\u002Fvuejs\u002Fvue-devtools",[37],[15,87,89],{"id":88},"setting-up-vue-devtools","Setting Up Vue DevTools",[20,91,92],{},"To get setup, run the following commands:",[94,95,100],"pre",{"className":96,"code":97,"language":98,"meta":99,"style":99},"language-bash shiki shiki-themes github-dark-high-contrast","# Install dependencies\nyarn\n\n# Build dependencies\nyarn build:watch\n","bash","",[101,102,103,112,119,126,132],"code",{"__ignoreMap":99},[104,105,108],"span",{"class":106,"line":107},"line",1,[104,109,111],{"class":110},"sQrFR","# Install dependencies\n",[104,113,115],{"class":106,"line":114},2,[104,116,118],{"class":117},"s_sBn","yarn\n",[104,120,122],{"class":106,"line":121},3,[104,123,125],{"emptyLinePlaceholder":124},true,"\n",[104,127,129],{"class":106,"line":128},4,[104,130,131],{"class":110},"# Build dependencies\n",[104,133,135,138],{"class":106,"line":134},5,[104,136,137],{"class":117},"yarn",[104,139,141],{"class":140},"sTRMh"," build:watch\n",[20,143,144],{},"From this point, we have two choices:",[146,147,148,151],"ol",{},[51,149,150],{},"Setup a local development environment",[51,152,153],{},"Setup local Chrome extension",[155,156,158],"h3",{"id":157},"setup-local-devtools-development-environment","Setup Local DevTools Development Environment",[20,160,161],{},"Once our dependencies have built, all we need to run a local DevTools environment is to run:",[94,163,165],{"className":96,"code":164,"language":98,"meta":99,"style":99},"yarn dev:shell-vue3\n",[101,166,167],{"__ignoreMap":99},[104,168,169,171],{"class":106,"line":107},[104,170,137],{"class":117},[104,172,173],{"class":140}," dev:shell-vue3\n",[20,175,176,177,181,182,185],{},"Once you run this command, you will be given a URL (default ",[33,178,179],{"href":179,"rel":180},"http:\u002F\u002Flocalhost:8090",[37],") that will serve the ",[101,183,184],{},"shell-vue3"," application to test the DevTools with.",[155,187,189],{"id":188},"setup-local-chrome-extension","Setup Local Chrome Extension",[20,191,192],{},"However, the primary purpose of this tutorial is to show you how to setup a local Chrome extension so we can connect it with other Vue 3 apps!",[20,194,195,196,199],{},"Assuming you still have ",[101,197,198],{},"yarn build:watch"," running, you can do the following steps:",[48,201,202,208,211,214,217],{},[51,203,204,205],{},"Start local Chrome extension environment: ",[101,206,207],{},"yarn dev:chrome",[51,209,210],{},"Open Chrome",[51,212,213],{},"Go to Extensions",[51,215,216],{},"Turn on \"Developer Mode\"",[51,218,219],{},"Click \"Load unpacked\"",[20,221,222],{},"Setup Vue 3 app\nShow Vue Devtools connected!",[15,224,226],{"id":225},"final-thoughts","Final Thoughts",[20,228,229],{},"And with that, you're now fully equipped to not only run Vue.js DevTools locally with your Vue 3 app; but you can also contribute back to the project if you want as well!",[231,232,233],"style",{},"html pre.shiki code .sQrFR, html code.shiki .sQrFR{--shiki-default:#BDC4CC}html pre.shiki code .s_sBn, html code.shiki .s_sBn{--shiki-default:#FFB757}html pre.shiki code .sTRMh, html code.shiki .sTRMh{--shiki-default:#ADDCFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":99,"searchDepth":114,"depth":114,"links":235},[236,237,238,242],{"id":17,"depth":114,"text":18},{"id":42,"depth":114,"text":43},{"id":88,"depth":114,"text":89,"children":239},[240,241],{"id":157,"depth":121,"text":158},{"id":188,"depth":121,"text":189},{"id":225,"depth":114,"text":226},"2020-10-21T19:24:37-04:00","Since Vue DevTools is still in beta for Vue 3, rather than wait for the next publishing cycle to get the latest update, being able to setup DevTools locally can be a life saver. In this video, I'll be going over how to setup Vue.js DevTools from scratch.",false,null,"md",{"stage":249,"planted":243,"tended":243,"topics":250},"evergreen",[251,252],"vue","craft","\u002Fblog\u002Ftutorial-vue-3-apps-with-devtools",{"title":5,"description":244},{"loc":253,"lastmod":243},"blog\u002Ftutorial-vue-3-apps-with-devtools",[251,258],"development","8zzqMsPrjUubfALgSetI-MAHhlB-nSC1jSElmHmV5dY",{"newer":261,"older":267,"related":273},{"title":262,"path":263,"tags":264,"date":266},"Export Variables from CSS Modules into SFCs","\u002Fblog\u002Fexport-variables-from-css-modules-into-sfcs",[251,265],"css","2020-12-20T23:13:00-05:00",{"title":268,"path":269,"tags":270,"date":272},"TL;DR Speaking in a Remote World","\u002Fblog\u002Ftldr-speaking-in-a-remote-world",[271],"events","2020-10-14T21:09:31-04:00",[274,279,284],{"title":275,"path":276,"tags":277,"date":278},"Stop forgetting to trigger workflows in Vue","\u002Fblog\u002Fstop-forgetting-to-trigger-workflows-in-vue",[251,258],"2025-12-02T17:06:20-05:00",{"title":280,"path":281,"tags":282,"date":283},"TL;DR What I'm Excited for in Vue 3","\u002Fblog\u002Ftldr-what-im-excited-for-in-vue-3",[251,258],"2020-10-07T13:52:10-04:00",{"title":285,"path":286,"tags":287,"date":288},"TL;DR What is VuePress?","\u002Fblog\u002Ftldr-what-is-vuepress",[251,258],"2020-09-30T16:22:02-04:00",1795057257832]