AngularDoc / angulardoc.github.io

angulardoc.github.io web site
https://angulardoc.github.io
34 stars 1 forks source link

Workspace has no angular projects #26

Open ZouZou opened 5 years ago

ZouZou commented 5 years ago

Hi,

I have installed the AngularDoc explorer and tried to run it to see how it will detect the ngrx in my application, but I keep getting "Workspace has no angular projects" Am I missing something, what are the pre-requisites?

by the way my application is using angular 6.1.0

agiledigits commented 5 years ago

@ZouZou Please try v6.1.1 and see if it works for you. We are looking for the file "angular.json" in the root directory.

ZouZou commented 5 years ago

@agiledigits I am using version 6.1.1 and I do have an angular.json file at the root directory it shows me the below and that's all image

tomingoglia commented 5 years ago

I see the same thing as ZouZou...very simple project. ng 6.1.9 here. NgRx 6.1.0

agiledigits commented 5 years ago

@tomingoglia Could you provide a sample project? Which OS are you using?

ZouZou commented 5 years ago

@agiledigits I am using windows 10 and visual studio code version 1.28.0 would my angular.json help you out?

agiledigits commented 5 years ago

@ZouZou yes that'll be helpful.

ZouZou commented 5 years ago

@agiledigits { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "angular-coreui": { "root": "", "sourceRoot": "src", "projectType": "application", "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "outputPath": "dist", "index": "src/index.html", "main": "src/main.ts", "tsConfig": "src/tsconfig.app.json", "polyfills": "src/polyfills.ts", "assets": ["src/assets", "src/manifest.json"], "styles": ["src/scss/style.scss"], "scripts": [] }, "configurations": { "production": { "optimization": true, "outputHashing": "all", "sourceMap": false, "extractCss": true, "namedChunks": false, "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, "fileReplacements": [ { "replace": "src/environments/environment.ts", "with": "src/environments/environment.prod.ts" } ], "serviceWorker": true } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "browserTarget": "angular-coreui:build" }, "configurations": { "production": { "browserTarget": "angular-coreui:build:production" } } }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { "browserTarget": "angular-coreui:build" } }, "test": { "builder": "@angular-devkit/build-angular:karma", "options": { "main": "src/test.ts", "karmaConfig": "./karma.conf.js", "polyfills": "src/polyfills.ts", "tsConfig": "src/tsconfig.spec.json", "scripts": [], "styles": ["src/scss/style.scss"], "assets": ["src/assets", "src/manifest.json"] } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"], "exclude": [] } } } }, "angular-coreui-e2e": { "root": "", "sourceRoot": "", "projectType": "application", "architect": { "e2e": { "builder": "@angular-devkit/build-angular:protractor", "options": { "protractorConfig": "./protractor.conf.js", "devServerTarget": "angular-coreui:serve" } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": ["e2e/tsconfig.e2e.json"], "exclude": [] } } } } }, "defaultProject": "angular-coreui", "schematics": { "@schematics/angular:component": { "prefix": "app", "styleext": "scss" }, "@schematics/angular:directive": { "prefix": "app" } } }

tomingoglia commented 5 years ago

https://github.com/tomingoglia/oms-ngrx-poc

agiledigits commented 5 years ago

@ZouZou @tomingoglia make sure you run "npm install". "Application Explorer" showed the expected content, and we'll look into why NgRx Explorer didn't.

screenshot 2018-10-10 09 27 22
tomingoglia commented 5 years ago

I have run npm install. The application runs on my system...but Application Explorer doesn't find it. It's Windows 10. Perhaps there is an issue on Windows?

agiledigits commented 5 years ago

@ZouZou @tomingoglia Please try v6.1.2 and let me know what happens.

tomingoglia commented 5 years ago

Same problem with 6.1.2. It sits there checking for about 10 seconds. Not sure if that is helpful information.

Ultimatum555 commented 5 years ago

I have the same issue with Windows 10. It works pretty well on linux,

agiledigits commented 5 years ago

@ZouZou @tomingoglia @Ultimatum555 Please try v6.1.3.

ZouZou commented 5 years ago

@agiledigits I can confirm that the "application explorer" is working now than you for your help. however, when I click on NGRX explorer I get the following error "Cannot read property 'properties' of undefined" or "Cannot read property 'namedBindings' of undefined"

tomingoglia commented 5 years ago

Awesome...6.1.3 is working for me. Effects don't seem to be pointing to the correct files. Perhaps it is something messed up in my imports (index.ts). I'll play around a bit more. I think I'm going to like this tool...thanks!

ZouZou commented 5 years ago

@tomingoglia were you able to get the "NGRX Explorer" to work?