Data path “.name” should match format “html-selector”.

If you read this blog post title carefully, that’s what I got when attempted to generate a new application with the following name, app-1.

Here is the complete error output:

Schematic input does not validate against the Schema: {“name”:”app-1″,”version”:”6.0.8″,”newProjectRoot”:”projects”,”skipInstall”:false,”linkCli”:false,”skipGit”:false,”commit”:null}
Errors:

Data path “.name” should match format “html-selector”.

Seems to be we can’t have numeric characters in the application name. I wonder how that looks like when could have the name being used in the template:

<app-1-root></app-1-root>

That doesn’t look good, yes?

Luckily, the ng new command prevented that from the beginning.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s