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

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

Open
3 tasks done
johnwc opened this issue Sep 4, 2024 · 1 comment
Open
3 tasks done

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

johnwc opened this issue Sep 4, 2024 · 1 comment

Comments

@johnwc
Copy link

johnwc commented Sep 4, 2024

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.
@baiwusanyu-c
Copy link
Member

I am glad that Vue 3.5 supports more features of custom elements. This repository should have completed its mission (a transitional solution before Vue supports more features for custom elements), so this repository should not support 3.5.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants