Skip to content

Vue 3 SFC Compiler function call with semicolon bug. #7805

@houd1ni

Description

@houd1ni

Vue version

3.2.47

Link to minimal reproduction

https://github.com/houd1ni/vue-issues

Steps to reproduce

  • npm i
  • npm run dev
  • open in a browser (mine is ff latest).
  • See the console.

At first glance, it is a sfc compiler stuff.
If it is a vite's issue, I'd open it there and close here, though.

What is expected?

Clean console, Compo.vue output with its' hello.

What is actually happening?

It is crashing because the compiler removes semicolons and moves ;(window) after a function call.

image

System Info

ff111.0b3 @ win10x64 intel 12100 w 32GbDDR43200.
node v19.2.0

Any additional comments?

😭

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't workinghas PRA pull request has already been submitted to solve the issuescope: compilerscope: script-setup

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy