Skip to content

Stencil: autoDefineCustomElements does not exist in outputTargets type #1168

@NickersWeb

Description

@NickersWeb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions