Skip to content

Commit

Permalink
fix broken upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecoffman committed Oct 17, 2024
1 parent 9804e33 commit 4b4f087
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 20 deletions.
36 changes: 29 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"core-js": "^3.6.5",
"register-service-worker": "^1.7.1",
"vue": "^3.5.12",
"vue-router": "^3.4.2"
"vue-router": "^4.4.5"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^5.0.8",
Expand Down
9 changes: 2 additions & 7 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import Vue from 'vue'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './registerServiceWorker'

Vue.config.productionTip = false

new Vue({
router,
render: h => h(App)
}).$mount('#app')
createApp(App).use(router).mount('#app')
8 changes: 3 additions & 5 deletions src/router.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import Vue from 'vue'
import Router from 'vue-router'
import { createMemoryHistory, createRouter } from 'vue-router'
import Game from './views/Game'
import Help from './views/Help'

Vue.use(Router)

export default new Router({
export default createRouter({
history: createMemoryHistory(),
routes: [
{
path: '/',
Expand Down

0 comments on commit 4b4f087

Please sign in to comment.