A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
error - TypeError: Cannot read properties of undefined (reading 'createHTMLDocument')
at .../node_modules/mypkg/index.js:12292:37
at .../node_modules/mypkg/index.js:12295:4
at .../node_modules/mypkg/index.js:2226:4
at .../node_modules/mypkg/index.js:2236:4
at hydrateAppClosure (.../node_modules/mypkg/index.js:12857:2)
at hydrateFactory (.../node_modules/mypkg/index.js:23821:3)
at .../node_modules/mypkg/index.js:39166:37
Expected Behavior
work
System Info
System: node 20.12.2
Platform: darwin (23.6.0)
CPU Model: Apple M3 Pro (12 cpus)
Compiler: .../node_modules/@stencil/core/compiler/stencil.js
Build: 1724698030
Stencil: 4.21.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
Just add the hydrate output to an existing working stencil components project
@vivere-dally I checked things out in a prerender app I have and didn't experience any errors. If you have a reproduction case that's failing I can take a look at that, but won't be able to offer help otherwise.
Prerequisites
Stencil Version
4.21.0
Current Behavior
Followed the hydrate docs and added a new output target:
Running build produces and output.
causes
Expected Behavior
work
System Info
Steps to Reproduce
Just add the hydrate output to an existing working stencil components project
Code Reproduction URL
no
Additional Information
No response