Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stencil: autoDefineCustomElements does not exist in outputTargets type #1168

Open
NickersWeb opened this issue Jan 28, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@NickersWeb
Copy link
Contributor

Describe the bug

autoDefineCustomElements appears to be replaced by customElementsExportBehavior.

The error being:

Object literal may only specify known properties, and 'autoDefineCustomElements' does not exist in type 'OutputTargetDistCustomElements'.ts(2353)

To Reproduce
Steps to reproduce the behavior:

  • In a new nx workspace: npx create-nx-workspace@latest
  • Create a stencil package: nx g @nxext/stencil:lib core-components --buildable
  • Navigate to stencil.config.ts
  • Error appears in outputTargets.type: 'dist-custom-elements'

Expected behavior

Replace autoDefineCustomElements with customElementsExportBehavior: 'auto-define-custom-elements'

Additional context

https://stenciljs.com/docs/custom-elements#customelementsexportbehavior

@NickersWeb NickersWeb added the bug Something isn't working label Jan 28, 2025
NickersWeb pushed a commit to NickersWeb/nx-extensions that referenced this issue Jan 28, 2025
…om-elements autoDefineCustomElements true with customElementsExportBehavior 'auto-define-custom-elements', including tests (https://stenciljs.com/docs/custom-elements#customelementsexportbehavior)
NickersWeb pushed a commit to NickersWeb/nx-extensions that referenced this issue Jan 28, 2025
NickersWeb added a commit to NickersWeb/nx-extensions that referenced this issue Jan 29, 2025
…get-dist-custom-elements-custom-elements-export-behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant