You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already report this problem, without success.
Stencil Version
4.20.0
Current Behavior
Hello,
I've recently upgraded a stencil project from v4.19.2 to v4.20.0 after which the builds have started failing.
Here is the build command I've been using always: stencil build --ci --prod --config=stencil-prod.config.ts
The error reads TypeError: Cannot read properties of undefined (reading 'kind') at Object.isClassDeclaration, I think node.parent is undefined while parsing componentMembers. please refer to the screecap below:
I believe this failure can be attributed to TypeScript upgrade from 5.4.5 to 5.5 (#5898), having checked the compiler's stencil.js file by comparing them between the upgrades:
stencil.js (v4.19.2)
stencil.js (v4.20.0)
Expected Behavior
Project build should complete successfully
System Info
System: node 20.16.0
Platform: darwin (23.6.0)
CPU Model: Apple M1 (8 cpus)
Compiler: /node_modules/@stencil/core/compiler/stencil.js
Build: 1722623140
Stencil: 4.20.0 🚐
TypeScript: 5.5.3
Rollup: 2.56.3
Parse5: 7.1.2
jQuery: 4.0.0-pre
Terser: 5.31.1
Steps to Reproduce
This may not be reproducible in a new stencil starter app. However, I'm hoping to understand why this has occurred and if there's a workaround or known solution
Code Reproduction URL
null
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
Stencil Version
4.20.0
Current Behavior
Hello,
I've recently upgraded a stencil project from v4.19.2 to v4.20.0 after which the builds have started failing.
Here is the build command I've been using always:
stencil build --ci --prod --config=stencil-prod.config.ts
The error reads
TypeError: Cannot read properties of undefined (reading 'kind') at Object.isClassDeclaration
, I thinknode.parent
is undefined while parsing componentMembers. please refer to the screecap below:I believe this failure can be attributed to TypeScript upgrade from 5.4.5 to 5.5 (#5898), having checked the compiler's
stencil.js
file by comparing them between the upgrades:stencil.js
(v4.19.2)stencil.js
(v4.20.0)Expected Behavior
Project build should complete successfully
System Info
Steps to Reproduce
This may not be reproducible in a new stencil starter app. However, I'm hoping to understand why this has occurred and if there's a workaround or known solution
Code Reproduction URL
null
Additional Information
No response
The text was updated successfully, but these errors were encountered: