Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quasar Framework integration issue #22

Open
ebeton-ro opened this issue Jul 20, 2022 · 4 comments
Open

Quasar Framework integration issue #22

ebeton-ro opened this issue Jul 20, 2022 · 4 comments

Comments

@ebeton-ro
Copy link

First of all I didn't know where to place type of question/problem.
I tried to integrate the editor with the Quasar framework with vite and webpack.
I also tried to clone this project on local machine ... I couldn't get it to trigger the @has-errors event.

Is there any special way of having this event triggered?

@josejachuf
Copy link

Hi, in my case I do not even get the error, the component does not appear directly in the component tree

image

<template>
  <q-page class="" padding>
    <p>vue-json-editor</p>
    <q-btn label="Prueba" />
    <Vue3JsonEditor
      v-model="json"
      :show-btns="true"
      :expandedOnStart="true"
      @json-change="onJsonChange"
    />
  </q-page>
</template>

<script>
import { defineComponent, reactive, toRefs } from 'vue'
import { Vue3JsonEditor } from 'vue3-json-editor'

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

      const state = reactive({
        json: {}
      })

      return {
        ...toRefs(state),
        onJsonChange
      }
  }
})
</script>

@josejachuf
Copy link

josejachuf commented Aug 11, 2022

I have an import problem

Failed to resolve component: Vue3JsonEditor

If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.

@joaomede
Copy link
Owner

Hi Guys.
if your project is different, please open different issues so as not to cause confusion.

about your problem with Quasar/Vite; I've never tested for Quasar/Vite, I've tested for VueJS/Vite, if possible, create a sandbox or something like that for me to take a look at.

@ebeton-ro
Copy link
Author

I will try to do that.
Just to be clear I put an hold on that project but I will create a github/gitlab repo and let you know ASAP.
Sorry I have to many things to do this days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants