the CDN-link from unpkg isn't working anymore. Other older versions do not work either.
https://unpkg.com/[email protected]/dist/vue.min.js
Which link can I use instead?
THX
<script src="https://unpkg.com/[email protected]/dist/vue.global.prod.js"></script>
<!-- <script src="//unpkg.com/vue@latest/dist/vue.min.js"></script> -->
<script src="https://unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.min.js"></script>
<script src="https://unpkg.com/vue-router"></script>
<script src="https://unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue-icons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/numeral.js/2.0.6/numeral.min.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
these are my sources to load that always worked. How do I replace them?
For Vue 3, the production minified files have
.prod.jsas their file extension. But it looks like you actually need Vue 2 because you were using the CDN links without a fixed version specifier:Vue recently updated
vue@latestto version 3. Similarly,vue-router@latestwas also updated to version 4, which is only compatible with Vue 3.To stick with Vue 2 compatible packages, use the following version specifiers in the CDN URLs:
To avoid these unexpected failures from
latesttag updates in the future, you should always use specific fixed versions for CDN links in production.