Skip to content

Property 'name' does not match the schema. '@myorg/ws-node' should match the pattern '^[a-zA-Z][^:]*$'. #31229

@holem

Description

@holem

Current Behavior

Nx refuses to generate app with name containing "@"

Expected Behavior

Nx should allow names for apps like "@myorg/myapp"

GitHub Repo

No response

Steps to Reproduce

npx nx generate @nx/node:application --directory=apps/ws-node --framework=fastify --linter=eslint --name=@myorg/ws-node --port=3001 --no-interactive --dry-run

Nx Report

% npx nx report

 NX   Report complete - copy this into the issue template

Node           : 22.15.0
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 10.9.2

nx                     : 21.0.3
@nx/js                 : 21.0.3
@nx/jest               : 21.0.3
@nx/eslint             : 21.0.3
@nx/workspace          : 21.0.3
@nx/devkit             : 21.0.3
@nx/esbuild            : 21.0.3
@nx/eslint-plugin      : 21.0.3
@nx/module-federation  : 21.0.3
@nx/next               : 21.0.3
@nx/node               : 21.0.3
@nx/react              : 21.0.3
@nx/vite               : 21.0.3
@nx/web                : 21.0.3
@nx/webpack            : 21.0.3
typescript             : 5.8.3
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
@nx/vite/plugin
@nx/next/plugin
@nx/js/typescript
@nx/js/typescript
---------------------------------------
Cache Usage: 0.00 B / 22.83 GB

Failure Logs

% npx nx generate @nx/node:application --directory=apps/ws-node --framework=fastify --linter=eslint --name=@myorg/ws-node --port=3001 --no-interactive --dry-run

 NX  Generating @nx/node:application


 NX   Property 'name' does not match the schema. '@myorg/ws-node' should match the pattern '^[a-zA-Z][^:]*$'.

Package Manager Version

No response

Operating System

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

Additional Information

No response

Metadata

Metadata

Assignees

Labels

outdatedpriority: lowLow Priority (does not affect many people or not severely or has an easy workaround)scope: corecore nx functionalitytype: bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions