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
Describe the bug
autoDefineCustomElementsappears to be replaced bycustomElementsExportBehavior.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:
npx create-nx-workspace@latestnx g @nxext/stencil:lib core-components --buildablestencil.config.tsoutputTargets.type: 'dist-custom-elements'Expected behavior
Replace
autoDefineCustomElementswithcustomElementsExportBehavior: 'auto-define-custom-elements'Additional context
https://stenciljs.com/docs/custom-elements#customelementsexportbehavior