Skip to content

[🐞] cli add command not working #1058

@Thomas-Waldbillig

Description

@Thomas-Waldbillig

Which package is affected?

CLI

Describe the bug

when trying to use the cli add command it does not complete successfully

when trying to follow the manual instructions there seem to be some steps missing, e.g. no mention of the required 'qwik-ui.config.json' file

Reproduction

n/a

Steps to reproduce

No response

System Info

linux [kubuntu] using bun or pnpm

Additional Information

pnpm create qwik@latest
#follow instructions and moving to the new project folder
pnpm dlx qwik-ui init
β”Œ  🐨 Qwik UI
β”‚
●  Installing Nx...
 WARN  deprecated [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
 WARN  5 deprecated subdependencies found: @humanwhocodes/[email protected], @humanwhocodes/[email protected], [email protected], [email protected], [email protected]
Packages: +92
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 544, reused 480, downloaded 0, added 92, done
node_modules/.pnpm/[email protected]/node_modules/nx: Running postinstall script, done in 145ms

devDependencies:
+ nx 20.7.1

Done in 1.8s
β”‚
β—†  nx init done
β”‚
β—‡  Specify the root of the project (leave empty for "./")
β”‚  ./
β”‚
β—‡  UI components folder
β”‚  src/components/ui
β”‚
β—‡  The path to the global css file the tailwind directives are defined (relative to the root you specified above)
β”‚  src/global.css
β”‚
β—‡  Would you like to install Tailwind? (required)
β”‚  Yes

      ............
    .::: :--------:.
   .::::  .:-------:.
  .:::::.   .:-------.
  ::::::.     .:------.
 ::::::.        :-----:
 ::::::.       .:-----.
  :::::::.     .-----.
   ::::::::..   ---:.
    .:::::::::. :-:.
     ..::::::::::::
             ...::::
     

β”Œ  πŸ¦‹  Add Integration  tailwind
β”‚
β—‡  App updated
β”‚
β””  πŸ¦„  Success!  Added tailwind to your app

β”‚
●  Adding qwik-ui cli to package.json...
 WARN  deprecated [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
 WARN  5 deprecated subdependencies found: @humanwhocodes/[email protected], @humanwhocodes/[email protected], [email protected], [email protected], [email protected]
Packages: +17
+++++++++++++++++
Progress: resolved 592, reused 511, downloaded 0, added 17, done

devDependencies:
+ qwik-ui 0.2.0

Done in 1.2s

 NX   Failed to process project graph.

An error occurred while processing files for the nx/core/package-json plugin
.
  - package.json: Nx requires the root package.json to specify a name if it is being used as an Nx project.

node:internal/errors:983
  const err = new Error(message);
              ^

Error: Command failed: pnpm exec nx g qwik-ui:init --interactive false --project-root=./ --ui-components-path=src/components/ui
    at genericNodeError (node:internal/errors:983:15)
    at wrappedFn (node:internal/errors:537:14)
    at checkExecSyncError (node:child_process:882:11)
    at execSync (node:child_process:954:15)
    at handleInit (/home/thomas/.cache/pnpm/dlx/p7yjwkwqb7w3stsfgdq6tq6gpu/1960543726e-32cee/node_modules/.pnpm/[email protected][email protected]/node_modules/qwik-ui/bin/index.js:135:34)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async main (/home/thomas/.cache/pnpm/dlx/p7yjwkwqb7w3stsfgdq6tq6gpu/1960543726e-32cee/node_modules/.pnpm/[email protected][email protected]/node_modules/qwik-ui/bin/index.js:31:9) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 209093,
  stdout: null,
  stderr: null
}

Node.js v23.0.0

Metadata

Metadata

Assignees

Labels

PKG: clirelated to the CLIPKG: styled kitRelated to the styled kitTYPE: bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions