ionic-team / stencil

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.
https://stenciljs.com
Other
12.56k stars 786 forks source link

Starter PWA can't be prerendered with Stencil 1.9.x #2157

Closed peterpeterparker closed 4 years ago

peterpeterparker commented 4 years ago

Stencil version:

     "@ionic/core": "^5.0.0-beta.5",
    "@stencil/core": "^1.9.0-13"

I'm submitting a: [X] bug report

Current behavior: I've created a starter dummy app (npm init stencil -> ionic-pwa) and upgraded it to Stencil 1.9.x to try out --prerender with the standard compiler.

Unlike with Stencil 1.8.x, prerendering is failing:

> stencil build  --prerender

[23:03.1]  @stencil/core v1.9.0-13 🌃
...
[23:20.2]  prerendering started ...
[23:35.5]  prerendered 2 urls, averaging 7665 ms per url
[23:35.5]  prerendering failed in 15.33 s

Expected behavior: Being able to prerender apps

Steps to reproduce:

git clone https://github.com/peterpeterparker/prerender-stencil-1-9.git
cd prerender-stencil-1-9
npm install
npm run build

Related code:

Nothing particular, starter kit

peterpeterparker commented 4 years ago

coooool! thank you @adamdbradley