Skip to content

Error while trying to run nx generate qwik-nx:app #245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lfroes opened this issue Apr 7, 2025 · 0 comments · May be fixed by #246
Open

Error while trying to run nx generate qwik-nx:app #245

lfroes opened this issue Apr 7, 2025 · 0 comments · May be fixed by #246

Comments

@lfroes
Copy link

lfroes commented Apr 7, 2025

Current Behavior

Whenever I try to run nx generate qwik-nx:app I get the following error:

$ npx nx generate qwik-nx:app --name=Test

 NX  Generating qwik-nx:application

√ Which directory do you want to create the application in? · tes
√ Which stylesheet format would you like to use? · css

 NX   (0 , project_name_and_root_utils_1.ensureProjectName) is not a function

Pass --verbose to see the stacktrace.

Expected Behavior

When running nx generate qwik-nx:app it should create a application whenever the user needs / wants

GitHub Repo

No response

Steps to Reproduce

  1. Create a qwik app
  2. Add qwik nx and nx
  3. run npx nx generate qwik-nx:app

Nx Report

 NX   Report complete - copy this into the issue template

Node           : 20.3.0
OS             : win32-x64
Native Target  : x86_64-windows
pnpm           : 10.6.2

nx                 : 20.7.1
@nx/js             : 20.7.1
@nx/eslint         : 20.7.1
@nx/workspace      : 20.7.1
@nx/devkit         : 20.7.1
@nx/eslint-plugin  : 20.7.1
@nx/vite           : 20.7.1
@nx/web            : 20.7.1
typescript         : 5.7.3
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
---------------------------------------
Community plugins:
qwik-nx : 3.0.0
---------------------------------------
Cache Usage: 0.00 B / 44.00 GB

Failure Logs

Additional Information

TypeError: (0 , project_name_and_root_utils_1.ensureProjectName) is not a function
    at C:\Users\nikow\Documents\code\ancient\fenix-qwik\node_modules\qwik-nx\src\generators\application\utils\normalize-options.js:11:67
    at Generator.next (<anonymous>)
    at C:\Users\nikow\Documents\code\ancient\fenix-qwik\node_modules\tslib\tslib.js:170:75
    at new Promise (<anonymous>)
    at Object.__awaiter (C:\Users\nikow\Documents\code\ancient\fenix-qwik\node_modules\tslib\tslib.js:166:16)  
    at normalizeOptions (C:\Users\nikow\Documents\code\ancient\fenix-qwik\node_modules\qwik-nx\src\generators\application\utils\normalize-options.js:9:20)
    at C:\Users\nikow\Documents\code\ancient\fenix-qwik\node_modules\qwik-nx\src\generators\application\generator-internal.js:23:82
    at Generator.next (<anonymous>)
    at C:\Users\nikow\Documents\code\ancient\fenix-qwik\node_modules\tslib\tslib.js:170:75
    at new Promise (<anonymous>)
@lfroes lfroes linked a pull request Apr 8, 2025 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant