본문 바로가기

개발일지/오늘의 에러

Vue.js Router 설정 에러 export 'createElementBlock' (imported as '_createElementBlock') was not found in 'vue'

vue.js Router 설정 후에 개발서버 띄우니 아래와 같은 에러 발생

 

 

WARNING in ./src/routes/Home.vue?vue&type=template&id=6f54a75b (./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[1].rules[6].use[0]!./src/routes/Home.vue?vue&type=template&id=6f54a75b) 3:23-42 
export 'createElementBlock' (imported as '_createElementBlock') was not found in 'vue' (possible exports: BaseTransition, Comment, Fragment, KeepAlive, 
Static, Suspense, Teleport, Text, Transition, TransitionGroup, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, defineEmit, defineProps, devtools, getCurrentInstance, getTransitionRawChildreonActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, transformVNodeArgs, triggerRef, unref, useContext, useCssModule, useCssVars, useSSRContext, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers, withScopeId)
 @ ./src/routes/Home.vue?vue&type=template&id=6f54a75b 1:0-249 1:0-249
 @ ./src/routes/Home.vue 1:0-65 3:16-22 13:64-15:3 14:29-35 13:2-15:4
 @ ./src/routes/index.js 3:0-30 14:15-19
 @ ./src/main.js 3:0-39 4:19-25

webpack 5.27.1 compiled with 2 warnings in 80 ms

 

 페이지가 로드되지 않았다.

 

 

npm i vue@next 명령어 실행 후 

 

npm run dev 

 

다시 띄우니 정상