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
Stencil version:
stencil/core@1.11.x but seems the problem exists since a while
I'm submitting a:
[X] bug report
Current behavior:
I trier to chase that issue since almost a week without any success. I'm not able to build a Stencil app with prerendering if a shadowed component use any property or functions of el.shadowroot
at the componentDidLoad lifecycle.
Furthermore I'm able to reproduce the problem with an empty sample component and app (see steps to reproduce)
[53:21.6] prerendering failed in 1.21 s
[ ERROR ] Hydrate Error
TypeError: Cannot read property 'querySelector' of null at MyComponent.componentDidLoad
(/Users/daviddalbusco/projects/lab/stencil-prerendering/my-app/dist/hydrate/index.js:16003:41) at safeCall
(/Users/daviddalbusco/projects/lab/stencil-prerendering/my-app/dist/hydrate/index.js:5984:36) at
postUpdateComponent
(/Users/daviddalbusco/projects/lab/stencil-prerendering/my-app/dist/hydrate/index.js:5938:13) at postUpdate
(/Users/daviddalbusco/projects/lab/stencil-prerendering/my-app/dist/hydrate/index.js:5905:34) at
updateComponent
(/Users/daviddalbusco/projects/lab/stencil-prerendering/my-app/dist/hydrate/index.js:5907:13) at update
(/Users/daviddalbusco/projects/lab/stencil-prerendering/my-app/dist/hydrate/index.js:5828:26) at
/Users/daviddalbusco/projects/lab/stencil-prerendering/my-app/dist/hydrate/index.js:6951:13 at
processTicksAndRejections (internal/process/task_queues.js:79:11)
npm ERR! code ELIFECYCLE
Expected behavior:
Being able to prerender even if shadow root is use at the component did load lifecycle
peterpeterparker
changed the title
pretender: shadow root undefined if used in component did load
prerender: shadow root undefined if used in component did load
Mar 23, 2020
Stencil version:
stencil/core@1.11.x but seems the problem exists since a while
I'm submitting a:
[X] bug report
Current behavior:
I trier to chase that issue since almost a week without any success. I'm not able to build a Stencil app with prerendering if a shadowed component use any property or functions of
el.shadowroot
at the
componentDidLoad
lifecycle.Furthermore I'm able to reproduce the problem with an empty sample component and app (see steps to reproduce)
Expected behavior:
Being able to prerender even if shadow root is use at the component did load lifecycle
Steps to reproduce:
git clone https://github.com/peterpeterparker/stencil-prerendering
cd stencil-prerendering/my-component
npm install
npm build
cd ../my-app
npm install
npm build
Related code:
The text was updated successfully, but these errors were encountered: