TypeError: Cannot read property ‘location’ of undefined in Vue router
If you are getting the above error, then the chances are that you have included createWebHistory in your vue router definition. You probably have: When you should have
If you are getting the above error, then the chances are that you have included createWebHistory in your vue router definition. You probably have: When you should have
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 instead of npm install vue-router will install the latest “tagged” version which is 3.5.1. Next is a tag which installs v4.0.4. Alternatively you… Read More »
To find the location of npm list -g, run this command: This will show you the location of where the various libaries are installed. On MacOS, they are in the /usr/local/lib folder.
Apache is installed and enabled in OSX by default. To confirm and check your version instance, see this. To start it, run this command in terminal: sudo apachectl start Then open up http://localhost on your browser and you should see this: You can also check the threads in Activity Monitor. To find out where this… Read More »