mgechev / ngrev

Tool for reverse engineering of Angular applications
MIT License
1.58k stars 106 forks source link

angular v6 compatibilty? #38

Closed sfabriece closed 6 years ago

sfabriece commented 6 years ago

Is this application compatible with angular v6?

mgechev commented 6 years ago

Do you get any errors trying to use it with Angular version 6?

sfabriece commented 6 years ago

yes, but I'm not sure if it is because of v6. I'm getting a lot of errors indicating that components are added to multiple ngModules (Same ngModule, look image below). But the application compiles fine with AOT.

NB: the window with the error can not be expanded to see the errors better. eventually formatting the errors for legibility.

windows 10

sfabriece commented 6 years ago

image

huskerona commented 6 years ago

I am getting the same error on the Mac version of the tool as @sfabriece is getting on Windows. However, the projects are not yet on NG v6, but rather 4 and 5.2 respectively. The same error appears.

Error while parsing project

Cannot parse your project. Make sure it's compatible with the Angular's AoT compiler. Error during parsing: {"__zone_symbol__currentTask":{"type":"microTask","state":"notScheduled","source":"Promise.then","zone":"angular","cancelFn":null,"runCount":0}}

The projects are compatible with Angular AOT compiler as this is how it is being tested and deployed.

bnymncoskuner commented 6 years ago

I've tried this with my project as well. I can confirm that it does not work with v0.0.20 & v0.0.21. However, v0.0.19 works just fine.

pinalbhatt commented 6 years ago

I am seeing following error when loading tsconig.app.json for Angular6 project with multiple apps.

image

aaronte commented 6 years ago

Same problem.

image

iammelvin commented 6 years ago

Any updates on this issue?

admir86 commented 6 years ago

same problem... dependencies:

"dependencies": {
    "@angular/animations": "^6.0.3",
    "@angular/common": "^6.0.3",
    "@angular/compiler": "^6.0.3",
    "@angular/core": "^6.0.3",
    "@angular/forms": "^6.0.3",
    "@angular/http": "^6.0.3",
    "@angular/platform-browser": "^6.0.3",
    "@angular/platform-browser-dynamic": "^6.0.3",
    "@angular/router": "^6.0.3",
    "@ngx-translate/core": "^10.0.2",
    "core-js": "^2.5.6",
    "rxjs": "^6.2.0",
    "zone.js": "^0.8.26"
  },

image

momegas commented 6 years ago

Same problem here on Ubuntu: screenshot from 2018-06-13 16-18-38

ghost commented 6 years ago

Somehow I get a:

Cannot parse your project. Make sure it's compatible with the Angular's AoT compiler. Error during parsing:

[project-path]/src/app/app.module.ts(67,33): Error during template compile of 'AppModule'
  Could not resolve angulartics2/ga relative to [project-path]/src/app/app.module.ts..

OSx + angular 6 project (yes, with a angulartics2 as dependency)

Xapuu commented 6 years ago

Hello guys, I have the same problem, for now you can use 0.0.19 version (at least for my ng6 projects it works).

mgechev commented 6 years ago

Unfortunately, in the next a couple of weeks, I won't be able to look into these issues. Around mid-September, I should be able to align ngast to the latest changes in the Angular compiler.

It'll be very helpful if you can share sample projects where you can consistently reproduce the issues.

xRuhRohx commented 6 years ago

Same issue here

Hasan-git commented 6 years ago

same here

mgechev commented 6 years ago

Try https://github.com/mgechev/ngrev/releases/tag/0.0.22