개발새발

[vue.js] Expected Number with value 3, got String with value "3" 본문

[error]

[vue.js] Expected Number with value 3, got String with value "3"

재래김유진 2021. 3. 5. 14:49
728x90
반응형

Expected Number with value 3, got String with value "3"

: 값이 3 인 숫자를 예상하고 값이 "3"인 문자열을 얻었습니다.

 

 

Vue carousel npm을 이용해서 swipe배너를 만드는 중 <carousel> 태그에 옵션을 추가하다 발생한 에러

 

변경 전

<carousel v-model=index :per-page="1" :slidePerPage="1" class="banner_list" 
                        paginationActiveColor="#e01a31" 
                        paginationColor="#999" 
                        paginationPadding="3">

 

 

변경 후

<carousel v-model=index :per-page="1" :slidePerPage="1" class="banner_list" 
                        paginationActiveColor="#e01a31" 
                        paginationColor="#999" 
                        :paginationPadding=3>

 

 

 

[참고사이트]

github.com/vuejs/vue/issues/1704

 

Expected Number, got String. · Issue #1704 · vuejs/vue

The following causes an error (running Vue 1.0.4): Vue.component('calc', { props: { additions: { type: Number, r...

github.com

 

728x90
반응형
Comments