3👍
✅
Your project is using Vue 2, and the latest
tags of vue
, vuex
, and vue-router
were all updated to be specific to Vue 3.
Your Codepen’s JS settings has these two external script URLs that default to the latest
tags:
# vue-router@latest = 4.0.15 (not compatible with Vue 2, but CDN link is also broken apparently)
https://unpkg.com/vue-router/dist/vue-router.js
# vuex@latest = 4.0.2 (not compatible with Vue 2)
https://unpkg.com/vuex
Solution
Update those URLs to use versions that are compatible with Vue 2 (i.e., the 3.x versions of those libs in this case):
https://unpkg.com/vue-router@3
https://unpkg.com/vuex@3
Source:stackexchange.com