Giter VIP home page Giter VIP logo

Comments (14)

riscie avatar riscie commented on August 29, 2024 4

@mgechev that does not cut it for me, I get the same error with or without exclude / include properties.

from ngrev.

augustincalin avatar augustincalin commented on August 29, 2024 1

Actually, reproducing this is quite simple (Windows 10).

ng --version

Angular CLI: 1.6.7
Node: 8.9.4
OS: win32 x64
Angular: 5.2.7
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.6.7
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.7
@schematics/angular: 0.1.17
typescript: 2.5.3
webpack: 3.10.0

  1. create new angular cli project: ng new ng-rev
  2. cd ng-rev
  3. generate a module: ng g m ModuleOne
  4. add a component in this module: cd src\app\module-one\ and then ng g c ComponentOne.
  5. export ComponentOneComponent from module-one.module.ts:
    exports: [ComponentOneComponent]
  6. add ModuleOneModule in app.module.ts imports: imports: [BrowserModule, ModuleOneModule]
  7. Try to open the project in ngrev. You will see the error.

from ngrev.

mgechev avatar mgechev commented on August 29, 2024

Would you share a small sample app to help me reproduce the issue?

from ngrev.

skorunka avatar skorunka commented on August 29, 2024

I will try... will post it here once ready. Thank you.

from ngrev.

jbgraug avatar jbgraug commented on August 29, 2024

Same here... getting this error in latest version 0.17 for mac.

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
  }
}

is it possible to activate dev tools? to be able to give more info?

from ngrev.

mgechev avatar mgechev commented on August 29, 2024

ngrev doesn't support the exclude and include properties of tsconfig.json. Try to drop them and see if it works.

from ngrev.

paulsperanza avatar paulsperanza commented on August 29, 2024

I took the following out of tsconfig.app.json. (CLI 1.6.3)

,"exclude": [
"test.ts",
"**/*.spec.ts"
]

I now get this error:

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

Type AttachmentCanvasComponent in C:/Projects/MpWebAngCli/src/MpWebAngCli/ClientApp/src/app/canvases/attachment/attachment-canvas.component.ts is part of the declarations of 2 modules: CanvasRoutingModule in C:/Projects/MpWebAngCli/src/MpWebAngCli/ClientApp/src/app/canvases/canvas-routing.module.ts and CanvasRoutingModule in C:\Projects\MpWebAngCli\src\MpWebAngCli\ClientApp\src\app\canvases\canvas-routing.module.ts! Please consider moving AttachmentCanvasComponent in C:/Projects/MpWebAngCli/src/MpWebAngCli/ClientApp/src/app/canvases/attachment/attachment-canvas.component.ts to a higher module that imports CanvasRoutingModule in C:/Projects/MpWebAngCli/src/MpWebAngCli/ClientApp/src/app/canvases/canvas-routing.module.ts and CanvasRoutingModule in C:\Projects\MpWebAngCli\src\MpWebAngCli\ClientApp\src\app\canvases\canvas-routing.module.ts. You can also create a new NgModule that exports and includes AttachmentCanvasComponent in C:/Projects/MpWebAngCli/src/MpWebAngCli/ClientApp/src/app/canvases/attachment/attachment-canvas.component.ts then import that NgModule in CanvasRoutingModule in C:/Projects/MpWebAngCli/src/MpWebAngCli/ClientApp/src/app/canvases/canvas-routing.module.ts and CanvasRoutingModule in C:\Projects\MpWebAngCli\src\MpWebAngCli\ClientApp\src\app\canvases\canvas-routing.module.ts.

from ngrev.

mgechev avatar mgechev commented on August 29, 2024

Would you share a minimum demo I can reproduce the issue with?

from ngrev.

riscie avatar riscie commented on August 29, 2024

I'm having the same issue (on Windows 10). I try to produce a minimal project where this happens because I can not share the one I've tried to use ngrev with.

from ngrev.

mgechev avatar mgechev commented on August 29, 2024

@riscie make sure your project's tsconfig doesn't have exclude and include properties. That's a workaround you can apply for now. At some point, ngrev should start supporting them as well.

from ngrev.

mgechev avatar mgechev commented on August 29, 2024

@augustincalin perfect! Will try to reproduce your steps on Windows in the next few weeks. Not sure if I'll be able to do that by the end of March but will do my best.

from ngrev.

mgechev avatar mgechev commented on August 29, 2024

@augustincalin would you try again? Version 0.0.18 updates the compiler.

from ngrev.

aaron-bond avatar aaron-bond commented on August 29, 2024

Hi @mgechev, I had the same issue as @augustincalin before 0.0.18. Now, I get this message:
image

I can't share the source, sorry - but I wanted to share the error just in case it was useful to you.

from ngrev.

mgechev avatar mgechev commented on August 29, 2024

This is unrelated to the reported original issue.

from ngrev.

Related Issues (20)

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.