讓瀏覽器先取得 Vue,再執行 createApp。
現在要做:先對照差異,再檢查 在 index.html 的「Vue CDN script」對照這項變更:<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="main.js" defer></script>
貼上位置:index.html 的 Vue CDN script 區塊
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="main.js" defer></script>預期結果:Network 有 Vue CDN,main.js 不再出現 Vue is not defined。
驗收證據:Network CDN 狀態與 Console 的 Vue 物件。
卡住時先看這裡
常見錯誤:只複製完整答案,卻沒有先理解這一項差異的責任。
第一個檢查:只對照目前差異指定的檔案與 anchor。