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

impossible to create a new module with the nativescript-schematics cli #85

Closed
fofBdx opened this issue Aug 23, 2018 · 4 comments
Closed

Comments

@fofBdx
Copy link

fofBdx commented Aug 23, 2018

Hi guys,

I try to create a new module

ng g m mymodule

but I have this error:

Schematic input does not validate against the Schema: {"routing":false,"routingScope":"Child","flat":false,"commonModule":true,"name":"mymodule","project":"sps-poc","path":"src\\app","spec":true}
Errors:

  Data path ".path" should match format "path".

For component, it's ok and If I remove the nativescript/schematics cli from angular.json, it works fine for module.
Am I doing something wrong?
(I confess, I already wasted around 1 hour because I didn't pay attention to the --bundle flag! ^^

Thanks!

fof
(amazing solution and work btw!!!)

env

Angular CLI: 6.1.4
Node: 8.11.4
OS: win32 x64
Angular: 6.1.4
nativescript/schematics: 0.2.5

 "devDependencies": {
    "@angular-devkit/build-angular": "~0.7.0",
    "@angular/animations": "^6.1.4",
    "@angular/cdk": "^6.4.6",
    "@angular/cli": "~6.1.0",
    "@angular/compiler-cli": "~6.0.3",
    "@angular/material": "^6.4.6",
    "@nativescript/schematics": "^0.2.5",
    "@types/jasmine": "~2.8.6",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "~8.9.4",
    "codelyzer": "~4.2.1",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~1.7.1",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.0",
    "karma-jasmine": "~1.1.1",
    "karma-jasmine-html-reporter": "^0.2.2",
    "nativescript-dev-sass": "~1.6.0",
    "nativescript-dev-typescript": "~0.7.0",
    "nativescript-dev-webpack": "^0.15.0",
    "protractor": "~5.3.0",
    "ts-node": "~5.0.1",
    "tslint": "~5.9.1",
    "typescript": "2.7.2"
  }
@sis0k0
Copy link
Contributor

sis0k0 commented Aug 23, 2018

Hi @fofBdx! I try to reproduce the issue, but I'm failing so far. Could you please try to isolate the problem in a github repo?

@fofBdx
Copy link
Author

fofBdx commented Aug 23, 2018

Hi @sis0k0! ok, it must be my config so. Strange. I only do a "ng new" and it fails after.

ng new --collection=@nativescript/schematics shared-test --shared

nothing particular

ng g m mymod

same error: Data path ".path" should match format "path".

I'll verify that deeper and close,

@fofBdx
Copy link
Author

fofBdx commented Aug 24, 2018

@sis0k0 -> Yep, it works fine with a fresh ubuntu install.
With windows, I can't make it work even with node & cli reinstall. Problem with my config? Pb with win- paths?
Since I seem to be the only one, I guess it's my config
Cheers

@fofBdx fofBdx closed this as completed Aug 24, 2018
@sis0k0
Copy link
Contributor

sis0k0 commented Aug 24, 2018

Hi @fofBdx. I'll try to reproduce the issue on Windows, 10x :)

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

2 participants