Open lehmamic opened 5 months ago
Same here. And with Crystal Project for NX around the corner, I wonder if it'd be better to sit and wait for a v18+ release (any known plans at this subject for this extension?). Unless there is a workaround to this issue ?
We're also experiencing this issue. It's not possible to make the lib buildable.
> NX Cannot read properties of undefined (reading 'properties')
TypeError: Cannot read properties of undefined (reading 'properties')
at addCodeIntoArray (/../../../../../node_modules/@nxext/stencil/src/stencil-core-utils/lib/plugins.js:11:37)
i am also facing same issues
> NX Cannot read properties of undefined (reading 'properties')
TypeError: Cannot read properties of undefined (reading 'properties')
at addCodeIntoArray (W:\recotap\adninja-workspace\node_modules\@nxext\stencil\src\stencil-core-utils\lib\plugins.js:11:37)
at addToPlugins (W:\recotap\adninja-workspace\node_modules\@nxext\stencil\src\stencil-core-utils\lib\plugins.js:87:12)
at addStylePlugin (W:\recotap\adninja-workspace\node_modules\@nxext\stencil\src\stencil-core-utils\lib\style-plugins.js:20:43)
at addStylePluginToConfig (W:\recotap\adninja-workspace\node_modules\@nxext\stencil\src\stencil-core-utils\lib\style-plugins.js:45:82)
at W:\recotap\adninja-workspace\node_modules\@nxext\stencil\src\generators\make-lib-buildable\make-lib-buildable.js:35:57
at Generator.next (<anonymous>)
at W:\recotap\adninja-workspace\node_modules\tslib\tslib.js:169:75
at new Promise (<anonymous>)
at Object.__awaiter (W:\recotap\adninja-workspace\node_modules\tslib\tslib.js:165:16)
at makeLibBuildableGenerator (W:\recotap\adninja-workspace\node_modules\@nxext\stencil\src\generators\make-lib-buildable\make-lib-buildable.js:31:20)
Same issue here. Is there any workaround?
I had forked it and given a fix
Not sure if it's been accepted.
On Sun, 25 Feb, 2024, 10:26 pm Yann Isabel, @.***> wrote:
Same issue here. Is there any workaround?
— Reply to this email directly, view it on GitHub https://github.com/nxext/nx-extensions/issues/1065#issuecomment-1962998919, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHJ22OBYIYKBQRJKCIVJ7DLYVNUL5AVCNFSM6AAAAABCKO2ON2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSHE4TQOJRHE . You are receiving this because you commented.Message ID: @.***>
Hi. I did a dug a little further.
The buildable command breaks at the point it wants to add the buildable configuration options to the stencil.config.ts
.
Seems that the nx
findNodes
cannot find any nodes with ObjectLiteralExpression
and therefore node[0]
is undefined.
It however does work when replacing ObjectLiteralExpression
with ArrayLiteralExpression
, for some strange reason. I guess this is an error in TypeScript, rather than this library.
I've opened the following PR, where I try to re-enable updating the outputTargets rather than ignoring nodes not being found.
I continue to have the same issue even after V18
Describe the bug Cannot create a buildable and publishable stencil library.
To Reproduce
npx create-nx-workspace@latest stencil-test
npm install -D @nx/node @nx/storybook @nxext/stencil
nx g @nxext/stencil:lib web-components --publishable --buildable --importPath=@my-lib/components --verbose
This will throw an exception:
Expected behavior
The stencil library will be added to the nx workspace
Additional context
Hi have following package versions in place: