#Is there a way to make more sense of Vue errors with vite?

6 messages · Page 1 of 1 (latest)

sudden sleet
#

I just get strange errors inside my console and I am unable to make sense of them. Did I miss something about the debugging process?
The kind of errors:

Uncaught TypeError: Cannot read properties of undefined (reading 'length')
    at child.<anonymous> (javascript?v=1692880139:2249:78)
    at child.set (javascript?v=1692880139:159:52)
    at child.<anonymous> (javascript?v=1692880139:291:40)
    at child.set (javascript?v=1692880139:159:52)
    at Array.<anonymous> (javascript?v=1692880139:996:42)
    at Function.each (javascript?v=1692880139:2:2623)
    at child.dataChangeHandler (javascript?v=1692880139:990:15)
    at child.showDataSet (javascript?v=1692880139:978:18)
    at child.addDataSet (javascript?v=1692880139:937:22)
    at Object.success (javascript?v=1692880139:954:22)

Clicking on every link just sends me to some random piece of code that I did not write

thorny kestrel
#

Are you running with npm run dev?

sudden sleet
#

yes

#

this is what my dev is set to

    "scripts": {
        "dev": "vite",
        "prod": "vue-tsc && vite build"
    },
thorny kestrel
#

It's hard to tell from the output above, but you're probably passing undefined where you think it's an array somewhere to some third party code. But it surprises me if you can't see your code anywhere in the stack trace

sudden sleet
#

yeah, sadly I can't 😦 I tried every link it gaved me