vuejs / core

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

Home Page:https://vuejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in v3.3.3

flav-code opened this issue · comments

Vue version

3.3.3

Steps to reproduce

Idk
image
image

What is actually happening?

An error appear in the console and my component fail

System Info

System:
    OS: Linux 5.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    CPU: (12) x64 Common KVM processor
    Memory: 15.89 GB / 31.36 GB
    Container: Yes
    Shell: 5.1.4 - /bin/bash
  Binaries:
    Node: 18.16.0 - /usr/bin/node
    npm: 9.5.1 - /usr/bin/npm
  npmPackages:
    vue: ^3.3.3 => 3.3.3
commented

I'm seeing this as well after upgrading my codebase to vue 3.3 - for me it seems to be caused by any components that do some sort of v-bind="$attrs"

Is this not something that is supported anymore?

image

image

Components are all using the comp api

commented

+1

I use composition api script setup

+1

commented

+1

I have this issue, too. I did some investigation and it's caused by wrong bundle node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
In 3.2.38 (which was my previous version) it's bundled like this (lines end with semicolons)
image
In 3.3.3 the semicolon after track(...) is missing and lines are joined, which causes the expression is malformed
image

EDIT:
Last version ok was 3.2.47

+1

I also have this issue. in v3.3.3 caused by wrong bundle node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js

image

+1

commented

+1

I have the same error, $attrs

I managed to fix the problem, wait for me to pass pr