Giter Club home page Giter Club logo

Comments (16)

wellingtonfetchly avatar wellingtonfetchly commented on June 10, 2024 2

It worked for me to update vue version to 3.2.29

from vue3-json-editor.

joaomede avatar joaomede commented on June 10, 2024 1

Guys, @juanfriss, @jianshe, there are example implementations in the repository itself, please test the examples. https://github.com/joaomede/vue3-json-editor/blob/master/src/App.vue

https://github.com/joaomede/vue3-json-editor/blob/master/example_vite/App.vue

from vue3-json-editor.

linqinghao avatar linqinghao commented on June 10, 2024 1

got the same error

from vue3-json-editor.

wellingtonfetchly avatar wellingtonfetchly commented on June 10, 2024 1

Hey @hakuna0829, I'm not sure either, I'm having the same problem.

from vue3-json-editor.

tripflex avatar tripflex commented on June 10, 2024 1

image
@wellingtonfetchly is correct, it seems the vue3-json-editor.esm.prod.js file does NOT have the updated codebase.

@joaomede did something get messed up during build and push to npm that these files were not updated with latest commits? Not sure why this is marked as wont fix

from vue3-json-editor.

joaomede avatar joaomede commented on June 10, 2024

please, show your implementation

from vue3-json-editor.

juanfriss avatar juanfriss commented on June 10, 2024

Just importing this got me the same error.

from vue3-json-editor.

dylantientcheu avatar dylantientcheu commented on June 10, 2024

Hello, i have been having this error too.
This is a screenshot of the link to the code that shows up on the error

image

from vue3-json-editor.

joaomede avatar joaomede commented on June 10, 2024

To test with "vite", run the command "npm run dev vue"
to test with "Vue3", run the command "npm run dev"
Currently I haven't identified any problems in the examples in the project, please use the examples to test the cases.

from vue3-json-editor.

ekxs0109 avatar ekxs0109 commented on June 10, 2024

image

image

same error

from vue3-json-editor.

wellingtonfetchly avatar wellingtonfetchly commented on June 10, 2024

Screen Shot 2022-01-28 at 17 44 36
Same error here just on production

This is my code

<template>
  <div>
    <Vue3JsonEditor v-model="json" mode="code" @json-change="onJsonChange" @has-error="handleError" />
    <p v-show="errorMessage" v-html="errorMessage" class="input-error" />
  </div>
</template>

<script>
import { reactive, toRefs, ref } from 'vue'
import { useField } from 'vee-validate'
import { Vue3JsonEditor } from 'vue3-json-editor'
export default {
  components: {
    Vue3JsonEditor
  },
  props: {
    name: {
      type: String,
      required: true
    }
  },
  setup (props) {
    const {
      value: inputValue,
      handleChange
    } = useField(props.name)

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

    const errorMessage = ref(null)

    function handleError(error) {
      errorMessage.value = error 
    }

    function onJsonChange(value) {
      handleChange(value)
      errorMessage.value = null
    }

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

from vue3-json-editor.

hakuna0829 avatar hakuna0829 commented on June 10, 2024

I've got same error.
I've created new project using quasar with vue 3.0 cli and followed readme from vue3-json-editor package like above.
Is there any solution?

from vue3-json-editor.

wellingtonfetchly avatar wellingtonfetchly commented on June 10, 2024

The problem was already solved in this commit fixed gitMode null bug, but the file dist/vue3-json-editor.esm.js in node_modules is still with the old code
Screen Shot 2022-01-31 at 10 28 36

from vue3-json-editor.

hakuna0829 avatar hakuna0829 commented on June 10, 2024

Thanks @wellingtonfetchly.
Then, what shall I do? Need to change it inside node_moudles?

from vue3-json-editor.

tripflex avatar tripflex commented on June 10, 2024

Yeah same issue/error using 3.0.0 (yes i know it's outdated but can't update right now without creating a bunch of other issues).

Using 1.1.4 from npm

from vue3-json-editor.

joaomede avatar joaomede commented on June 10, 2024

Fixed: 2112d92
NPM: https://www.npmjs.com/package/vue3-json-editor/v/1.1.5

from vue3-json-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.