Skip to content

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

@shairez

Description

@shairez

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\[email protected]_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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions