qwikifiers / qwik-nx

Nx plugin for Qwik
130 stars 23 forks source link

Cannot generate a qwik app on a new nx workspace #89

Closed shairez closed 1 year ago

shairez commented 1 year ago

Describe the bug The reason it's failing is because our get-installed-nx-version util is searching for @nrwl/workspace but nothing is installing it as part of the process

To Reproduce Steps to reproduce the behavior:

  1. run pnpx create-nx-workspace
  2. Choose the "packages project" option
  3. run pnpx add -D qwik-nx
  4. run nx generate qwik-nx:application qwik-demo-app --verbose
  5. See the following error:
Error: Could not resolve nx version from the package.json
at node_modules\.pnpm\qwik-nx@0.10.1_ahfuqicueq5hwuaga2z5irye2y\node_modules\qwik-nx\src\utils\get-installed-nx-version.js:11:11) 

Expected behavior

It needs to be either a dependency of qwik-nx or part of the app generator (or any generator that first adds it to package.json and then generates the app)