Prerequisites
Stencil Version
4.19.0
Current Behavior
I consume our component library as a dist-custom-elements in my React project using Vite bundler. Until I used 4.18.3 of @stencil/core, I didn't face this error. Started seeing this from 4.19.0.
Expected Behavior
This error shouldn't be thrown
System Info
System: node 20.12.0
Platform: darwin (23.5.0)
CPU Model: Apple M2 (8 cpus)
Compiler: /Users/xxx/Documents/Projects/yyy/node_modules/@stencil/core/compiler/stencil.js
Build: 1719433468
Stencil: 4.19.0 🏄
TypeScript: 5.4.5
Rollup: 2.56.3
Parse5: 7.1.2
jQuery: 4.0.0-pre
Terser: 5.31.1
Steps to Reproduce
Ours is a private component library, but install any Stencil-based component library that uses @stencil/core@4.19.0, consume a component from dist-custom-elements and try to build the consuming application.
Code Reproduction URL
NA
Additional Information
FAIL src/features/Listings/components/DownList/DownList.test.tsx
● Test suite failed to run
Cannot find module '@stencil/core/internal/client' from 'node_modules/comp-lib/dist/components/ou-avatar2.js'
Require stack:
node_modules/comp-lib/dist/components/ou-avatar2.js
node_modules/comp-lib/dist/components/ou-avatar.js
node_modules/comp-lib-react/dist/src/components/stencil-generated/index.js
node_modules/comp-lib-react/dist/src/components/index.js
node_modules/comp-lib-react/dist/src/index.js
src/features/Listings/components/DownList/DownList.test.tsx
Prerequisites
Stencil Version
4.19.0
Current Behavior
I consume our component library as a dist-custom-elements in my React project using Vite bundler. Until I used 4.18.3 of @stencil/core, I didn't face this error. Started seeing this from 4.19.0.
Expected Behavior
This error shouldn't be thrown
System Info
System: node 20.12.0 Platform: darwin (23.5.0) CPU Model: Apple M2 (8 cpus) Compiler: /Users/xxx/Documents/Projects/yyy/node_modules/@stencil/core/compiler/stencil.js Build: 1719433468 Stencil: 4.19.0 🏄 TypeScript: 5.4.5 Rollup: 2.56.3 Parse5: 7.1.2 jQuery: 4.0.0-pre Terser: 5.31.1Steps to Reproduce
Ours is a private component library, but install any Stencil-based component library that uses @stencil/core@4.19.0, consume a component from dist-custom-elements and try to build the consuming application.
Code Reproduction URL
NA
Additional Information