TypeError: Cannot read property ‘location’ of undefined in Vue router

By | March 14, 2021

If you are getting the above error, then the chances are that you have included createWebHistory in your vue router definition. You probably have: import { createApp } from ‘vue’ import { createRouter } from ‘vue-router’ import App from ‘./App.vue’ import Home from ‘./components/Home’ const router = createRouter({ routes: [ {path:’/’, component: Home} ] })… Read More »

“export ‘createWebHistory’ was not found in ‘vue-router’

By | March 5, 2021

Are you getting the error “export ‘createWebHistory’ was not found in ‘vue-router’ or “export ‘createRouter’ was not found in ‘vue-router’? A quick search on the Interweb will show that you have run npm install vue-router instead of npm install vue-router@next npm install vue-router will install the latest “tagged” version which is 3.5.1. Next is a… Read More »

Where does npm list -g install files?

By | March 3, 2021

To find the location of npm list -g, run this command: > npm list -g /usr/local/lib ├── @vue/cli@4.5.11 └── npm@7.5.3 This will show you the location of where the various libaries are installed. On MacOS, they are in the /usr/local/lib folder.

Less bang for your buck with TPG

By | March 1, 2021

This is what TPG was offering back in October 2020. This is what they are offering now: You can see that the small plan discount for new customers is now only for 3 months and not 6 months. You do get an extra 2GB of data but that is neither here nor there.

How to easily remember Vue shortcuts

By | January 27, 2021

If you’ve come across the @ and : symbol in Vue and you have forgotten what they mean, then there is an easy way to remember them. Imagine @ looking similar to an ‘o’ (aka the letter). This letter is contained in v-on. Therefore v-on can be replaced with @. We can also get rid… Read More »