Comments (7)
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 ?
from nx-extensions.
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)
from nx-extensions.
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)
from nx-extensions.
Same issue here. Is there any workaround?
from nx-extensions.
from nx-extensions.
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.
nx-extensions/packages/stencil/src/stencil-core-utils/lib/plugins.ts
Lines 16 to 17 in c3f7394
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.
from nx-extensions.
I continue to have the same issue even after V18
from nx-extensions.
Related Issues (20)
- Svelte: Wrong path when using importPath flag
- Svelte: NX throws error when using the tsConfiguration flag with storybook
- Svelte: storybook generator fail if NOT using eslintrc JSON file HOT 1
- Ionic React: dependenies error with nx v17.0.3
- Sveltekit: Directory option doesn't work
- Stencil : npm install error - No matching version found for @storybook/manager-webpack5
- Stencil: conflicting peer dependencies on `npm i @nxext/stencil` HOT 2
- Stencil - adding Angular outputtarget throws Cannot read properties of undefined (reading 'kind') HOT 3
- Sveltekit: New app errors HOT 4
- Angular: Failed to fetch dynamically imported module .angular/cache/17.0.8/vite/deps/ion-app_8.entry.js?import HOT 7
- Solid: nx integrated monorepo vite config
- Stencil: Adding output target type Angular leads to an exception HOT 2
- React: Capacitor live reload not working
- Stencil: missing support for Nx latest version (v18) HOT 1
- Sveltekit: Upgrade default versions and allow user overrides via CLI options
- Stencil: Always get 'Cannot find tsconfig.base.json'
- Sveltekit: NX console plugin inside vscode breaks after making an app
- Stencil: `Cannot read properties of undefined (reading 'validateConfig')` HOT 2
- Stencil: `Cannot convert undefined or null to object`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx-extensions.