Skip to content
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

TypeError: Cannot read properties of undefined (reading 'replace') when Generating App on NX 20 #240

Open
mainawycliffe opened this issue Nov 22, 2024 · 0 comments

Comments

@mainawycliffe
Copy link

Current Behavior

After updating to NX@20, I am getting the following error: TypeError: Cannot read properties of undefined (reading 'replace'), seems like something internally changed in nx and hence the need to update this plugin to the latest version

Expected Behavior

Should generate an nx application

GitHub Repo

No response

Steps to Reproduce

  1. Update to NX V20 or Setup with NX V20
  2. Run pnpm nx generate qwik-nx:app

Nx Report

NX   Report complete - copy this into the issue template

Node           : 22.11.0
OS             : darwin-arm64
Native Target  : aarch64-macos
pnpm           : 9.5.0

nx                 : 20.1.2
@nx/js             : 20.1.2
@nx/jest           : 20.1.2
@nx/eslint         : 20.1.2
@nx/workspace      : 20.1.2
@nx/angular        : 20.1.2
@nx/devkit         : 20.1.2
@nx/esbuild        : 20.1.2
@nx/eslint-plugin  : 20.1.2
@nx/playwright     : 20.1.2
@nx/vite           : 20.1.2
@nx/web            : 20.1.2
@nx/webpack        : 20.1.2
typescript         : 5.5.4
---------------------------------------
Registered Plugins:
@nx/playwright/plugin
@nx/eslint/plugin
---------------------------------------
Community plugins:
@fortawesome/angular-fontawesome : 0.15.0
@ngrx/signals                    : 18.0.2
@nx-toolkits/firebase            : 0.7.6
@testing-library/angular         : 17.3.0
ngx-toastr                       : 19.0.0
qwik-nx                          : 2.3.1

Failure Logs

NX  Generating qwik-nx:application

✔ What name would you like to use? · portals
✔ Which stylesheet format would you like to use? · scss

 NX   Cannot read properties of undefined (reading 'replace')

TypeError: Cannot read properties of undefined (reading 'replace')
    at removeWindowsDriveLetter (/Users/mainawycliffe/projects/myyard/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_ty_ebfgdql3et2pzmvihir237ihuy/node_modules/nx/src/utils/path.js:9:27)
    at normalizePath (/Users/mainawycliffe/projects/myyard/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__@[email protected]_ty_ebfgdql3et2pzmvihir237ihuy/node_modules/nx/src/utils/path.js:16:12)
    at determineProjectNameAndRootOptions (/Users/mainawycliffe/projects/myyard/node_modules/.pnpm/@[email protected][email protected]_@[email protected]_@[email protected]_@[email protected]__@s_sgse4sppmhp6dh24rnls7tj7ui/node_modules/@nx/devkit/src/generators/project-name-and-root-utils.js:11:58)
    at /Users/mainawycliffe/projects/myyard/node_modules/.pnpm/[email protected]_twjjklwevhsczmotghfoqxella/node_modules/qwik-nx/src/generators/application/utils/normalize-options.js:11:180
    at Generator.next (<anonymous>)
    at /Users/mainawycliffe/projects/myyard/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:169:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/Users/mainawycliffe/projects/myyard/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:165:16)
    at normalizeOptions (/Users/mainawycliffe/projects/myyard/node_modules/.pnpm/[email protected]_twjjklwevhsczmotghfoqxella/node_modules/qwik-nx/src/generators/application/utils/normalize-options.js:10:20)
    at /Users/mainawycliffe/projects/myyard/node_modules/.pnpm/[email protected]_twjjklwevhsczmotghfoqxella/node_modules/qwik-nx/src/generators/application/generator-internal.js:23:82

Additional Information

No response

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

No branches or pull requests

1 participant