Comments (5)
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.
The error is still here.
Same error although changed the command to:
ng g ngx-spec:specs '**/*'
from ngx-spec.
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.
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.
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)
- unable to run generator HOT 4
- ng g ngx-specs '**/*' HOT 6
- "type is not defined" for type "component" HOT 14
- Unexpected token ] in JSON at position 4457
- Creates a weird spec file for even a single file HOT 1
- The 'path' option in '/*removed_local_directory*/node_modules/ngx-spec/src/specs/schema.json' is using deprecated behaviour.'workingDirectory' smart default provider should be used instead. HOT 6
- feature request : create all missing specs HOT 2
- Error "Unknown Protocol on url "[object Object]"." HOT 15
- `Schematic "spec" not found in collection "@schematics/angular". HOT 5
- Tree type is not supported. HOT 3
- Error: Could not find (undefined) HOT 2
- Cannot find module '@schematics/angular/component/index.js' HOT 1
- Batch specs generator not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-spec.