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

Issue with creating backend application angular spring boot #29500

Open
1 of 4 tasks
harspect opened this issue Jan 1, 2025 · 0 comments
Open
1 of 4 tasks

Issue with creating backend application angular spring boot #29500

harspect opened this issue Jan 1, 2025 · 0 comments

Comments

@harspect
Copy link

harspect commented Jan 1, 2025

Current Behavior

Command: nx g @nxrocks/nx-spring-boot:project --name del-backend --projectType application --buildSystem 'maven-project' --packaging jar --javaVersion 21 --language java --groupId 'com.order-app' --artifactId 'tg' --packageName 'com.order-app.tg' --verbose gives an error

TypeError: Cannot read properties of undefined (reading 'replace')
at removeWindowsDriveLetter (/Users/leonidmac/javascript-basics/telegram-delivery/node_modules/nx/src/utils/path.js:9:27)
at normalizePath (/Users/leonidmac/javascript-basics/telegram-delivery/node_modules/nx/src/utils/path.js:16:12)
at determineProjectNameAndRootOptions (/Users/leonidmac/javascript-basics/telegram-delivery/node_modules/@nx/devkit/src/generators/project-name-and-root-utils.js:11:58)
at normalizeOptions (/Users/leonidmac/javascript-basics/telegram-delivery/node_modules/@nxrocks/nx-spring-boot/src/generators/project/lib/normalize-options.js:6:144)
at projectGenerator (/Users/leonidmac/javascript-basics/telegram-delivery/node_modules/@nxrocks/nx-spring-boot/src/generators/project/generator.js:9:64)
at /Users/leonidmac/javascript-basics/telegram-delivery/node_modules/nx/src/command-line/generate/generate.js:240:32
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async handleErrors (/Users/leonidmac/javascript-basics/telegram-delivery/node_modules/nx/src/utils/handle-errors.js:8:24)
at async Object.handler (/Users/leonidmac/javascript-basics/telegram-delivery/node_modules/nx/src/command-line/generate/command-object.js:13:22)

"@nx/workspace": "20.3.0",
"@nxrocks/nx-spring-boot": "^10.2.6",

Expected Behavior

I expect to generate backend application but it is not working

GitHub Repo

No response

Steps to Reproduce

  1. Create angular monorepo
    2 Try to generate spring boot application via nxrocks plugin
    3 Get an error

Nx Report

Node           : 23.3.0
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 11.0.0

nx (global)            : 20.3.0
nx                     : 20.3.0
@nx/js                 : 20.3.0
@nx/jest               : 20.3.0
@nx/eslint             : 20.3.0
@nx/workspace          : 20.3.0
@nx/angular            : 20.3.0
@nx/devkit             : 20.3.0
@nx/eslint-plugin      : 20.3.0
@nx/module-federation  : 20.3.0
@nx/web                : 20.3.0
@nx/webpack            : 20.3.0
typescript             : 5.6.3
---------------------------------------
Community plugins:
@fortawesome/angular-fontawesome : 1.0.0
@nxrocks/nx-spring-boot          : 10.2.6
angular-eslint                   : 19.0.2

Failure Logs

TypeError: Cannot read properties of undefined (reading 'replace')
    at removeWindowsDriveLetter (/Users/leonidmac/javascript-basics/telegram-delivery/node_modules/nx/src/utils/path.js:9:27)
    at normalizePath (/Users/leonidmac/javascript-basics/telegram-delivery/node_modules/nx/src/utils/path.js:16:12)
    at determineProjectNameAndRootOptions (/Users/leonidmac/javascript-basics/telegram-delivery/node_modules/@nx/devkit/src/generators/project-name-and-root-utils.js:11:58)
    at normalizeOptions (/Users/leonidmac/javascript-basics/telegram-delivery/node_modules/@nxrocks/nx-spring-boot/src/generators/project/lib/normalize-options.js:6:144)
    at projectGenerator (/Users/leonidmac/javascript-basics/telegram-delivery/node_modules/@nxrocks/nx-spring-boot/src/generators/project/generator.js:9:64)
    at /Users/leonidmac/javascript-basics/telegram-delivery/node_modules/nx/src/command-line/generate/generate.js:240:32
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async handleErrors (/Users/leonidmac/javascript-basics/telegram-delivery/node_modules/nx/src/utils/handle-errors.js:8:24)
    at async Object.handler (/Users/leonidmac/javascript-basics/telegram-delivery/node_modules/nx/src/command-line/generate/command-object.js:13:22)

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant