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

Preact: Can not generate app "Unable to read the target configuration for the provided build target"

Open jochman opened this issue 1 year ago • 3 comments

Describe the bug running nx g @nxext/preact:app web-preact getting Unable to read the target configuration for the provided build target, web-preact:build

Expected behavior To generate an app

Additional context Add any other context about the problem here.

jochman avatar Dec 30 '24 21:12 jochman

@jochman have you found any fix? Or any other way how to setup a preact app in nx?

etylsarin avatar Feb 16 '25 22:02 etylsarin

@etylsarin nope

also

I don't find it worth to use preact.

not enough value and the api isn't really compatible.

jochman avatar Mar 12 '25 06:03 jochman

It seems to be a bug with the add-cypress util for the preact generator.

For some reason, it is attempting to run an nx build on the project before it is available: https://github.com/nxext/nx-extensions/blob/main/packages/preact/src/generators/application/lib/add-cypress.ts#L20

Not sure why this would be necessary. In the meantime, it's possible to work around this by skipping the e2e generator with the option --e2eTestRunner none

nVitius avatar Sep 11 '25 15:09 nVitius