stencil-community / stencil-app-starter

Minimal starter project for building web components with Stencil
https://github.com/ionic-team/stencil
MIT License
320 stars 102 forks source link

(chore): update dependencies #91

Open christian-bromann opened 11 months ago

christian-bromann commented 11 months ago

Starting a Stencil project using the "app" route currently fails due to:

Screenshot 2023-09-25 at 9 24 26 AM

It turns out that this starter project uses an outdated @stencil/core package and stops compiling correctly at this point given that transient Babel dependency versions use * and expect a TypeScript version higher than v2.

This patch updates some of the dependencies.

Status: work in progress

Running e2e tests still fails due to:

 RUNS  src/components/app-root/app-root.e2e.ts
/Users/christian.bromann/Sites/Ionic/projects/stencil-app-starter/node_modules/@stencil/core/testing/index.js:4525
  global.__CLOSE_OPEN_PAGES__ && await global.__CLOSE_OPEN_PAGES__(), testing.stopAutoApplyChanges();
                                                                              ^

TypeError: Caught error after test environment was torn down

testing.stopAutoApplyChanges is not a function
    at Object.<anonymous> (/Users/christian.bromann/Sites/Ionic/projects/stencil-app-starter/node_modules/@stencil/core/testing/index.js:4525:79)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Looking into fixing this as well.

beenotung commented 4 months ago

I just updated another stencil starter template recently without issue, maybe you can try again with the latest version.