nx-extensions icon indicating copy to clipboard operation
nx-extensions copied to clipboard

Stencil: App serve command failing with error

Open HarshRohila opened this issue 2 years ago • 3 comments

nx serve giving error

To Reproduce Steps to reproduce the behavior:

  1. Create empty nx workplace npx create-nx-workspace@latest (choose empty apps workspace)
  2. Install this package npm install @nxext/stencil --save
  3. Create app nx g @nxext/stencil:app my-app
  4. Run serve command nx serve my-app

This command gives error [ ERROR ] config.sys.getDevServerExecutingPath is not a function TypeError: config.sys.getDevServerExecutingPath is not a function at taskWatch (<my-project>/node_modules/@stencil/core/cli/index.cjs:1111:46) at async taskBuild

Expected behavior App should serve on localhost

HarshRohila avatar Aug 02 '22 04:08 HarshRohila

Good morning, seems like there's a change with 2.7.2. Could you downgrade to the stencil version 2.7.1 and try again?

DominikPieper avatar Aug 02 '22 06:08 DominikPieper

With 2.7.1 stencil core version, serve command worked, but other commands - test, e2e and build were failing And I was getting warning that peer dependency ^2.15.1 is required for stencil core, so tried 2.15.1 version, all commands are working with that version Thanks

HarshRohila avatar Aug 02 '22 17:08 HarshRohila

Ah sorry I meant 2.17 not 2.7. missed the one

DominikPieper avatar Aug 02 '22 21:08 DominikPieper