joaomede / vue3-json-editor

A jsoneditor of vue 3 (next) - (fork vue-json-editor)
ISC License
45 stars 29 forks source link

Vite + Vue 3 got warning in mode code #23

Open zulfikar4568 opened 2 years ago

zulfikar4568 commented 2 years ago
image

Here's my code that I used

<template>
  <Vue3JsonEditor v-model="state" :show-btns="true" @json-change="onJsonChange"/>
</template>

<script lang="ts">
import { defineComponent, ref } from 'vue'
import { Vue3JsonEditor } from 'vue3-json-editor'

export default defineComponent({
  name: 'App',
  components: {
    Vue3JsonEditor
  },
  setup () {
    function onJsonChange (value: any) {
      console.log(value)
    }

    const state = ref<object>({})

    return {
      state,
      onJsonChange
    }
  }
})
</script>
sOMarkus commented 1 year ago

We face the same Issue with Vite and Vue3 on mode code.