Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

[BUG] - Seems to be broken with vue 3.5 #147

@johnwc

Description

@johnwc

Describe the bug

With the latest release of 3.5, there is now an error when building components.

Building for production...C:\App\src\SiteWidget\node_modules\@unplugin-vue-ce\sub-style\index.cjs:110
  if (isApplyStylesIdentifier && isVueElementIdentifier && isBaseClassIdentifier && node.type === "CallExpression" && node.callee.type === "MemberExpression" && node.callee.property.name === "appendChild" && node.callee.object.property.name === "shadowRoot") {

TypeError: Cannot read properties of undefined (reading 'name')
    at injectApiCustomElement (C:\App\src\SiteWidget\node_modules\@unplugin-vue-ce\sub-style\index.cjs:110:237)
    at Object.enter (C:\App\src\SiteWidget\node_modules\@unplugin-vue-ce\sub-style\index.cjs:146:7)
    at d.visit (C:\App\src\SiteWidget\node_modules\estree-walker-ts\index.cjs:1:1360)
    at d.visit (C:\App\src\SiteWidget\node_modules\estree-walker-ts\index.cjs:1:1794)
    at d.visit (C:\App\src\SiteWidget\node_modules\estree-walker-ts\index.cjs:1:1756)
    at d.visit (C:\App\src\SiteWidget\node_modules\estree-walker-ts\index.cjs:1:1794)
    at d.visit (C:\App\src\SiteWidget\node_modules\estree-walker-ts\index.cjs:1:1756)
    at d.visit (C:\App\src\SiteWidget\node_modules\estree-walker-ts\index.cjs:1:1794)
    at x (C:\App\src\SiteWidget\node_modules\estree-walker-ts\index.cjs:1:3444)
    at injectVueRuntime (C:\App\src\SiteWidget\node_modules\@unplugin-vue-ce\sub-style\index.cjs:134:36)

Node.js v21.7.3

Reproduction

No response

System Info

No response

Used Package Manager

npm

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Make sure this is a unplugin-vue-ce issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs instead.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions