Giter Site home page Giter Site logo

Comments (5)

smnbbrv avatar smnbbrv commented on May 22, 2024

you are totally right, the error message is shitty (that's one that comes from @angular/cli)

Please try to change ngx-spec:spec to ngx-spec:specs. My fault, I wrongly documented it in the README => just fixed that.

ng g ngx-spec:specs '**/*'

from ngx-spec.

Joniras avatar Joniras commented on May 22, 2024

The error is still here.

Same error although changed the command to:
ng g ngx-spec:specs '**/*'

from ngx-spec.

smnbbrv avatar smnbbrv commented on May 22, 2024

could you please share OS that you have and the versions of those packages

  • @angular-devkit/core
  • @angular-devkit/schematics
  • @schematics/angular

?

from ngx-spec.

Joniras avatar Joniras commented on May 22, 2024

Alright, that was my fault, i had a trailing comma in angular.json
(angular itself didnt bother).

Issue solved (if there cant be anything done to make the error message more obvious).

Thanks for the support though.

from ngx-spec.

smnbbrv avatar smnbbrv commented on May 22, 2024

wow, the error is really weird.

This library is just a function which is called by angular cli. You type

ng g ...

and this actually is that angular cli generates something. Then the lib is that something, or, more correct, lib says how to do it.

This error message comes from angular cli because it could not parse your file. If you return this comma in place and try to generate another component, directive or whatsoever it would result into the same error.

I hope this clarifies the root of the error and how it all works (a bit).

If the issue is solved, could you close it, please?

from ngx-spec.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.