Comments (14)
@mgechev that does not cut it for me, I get the same error with or without exclude
/ include
properties.
from ngrev.
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
- create new angular cli project:
ng new ng-rev
cd ng-rev
- generate a module:
ng g m ModuleOne
- add a component in this module:
cd src\app\module-one\
and thenng g c ComponentOne
. - export ComponentOneComponent from module-one.module.ts:
exports: [ComponentOneComponent]
- add ModuleOneModule in app.module.ts imports:
imports: [BrowserModule, ModuleOneModule]
- Try to open the project in ngrev. You will see the error.
from ngrev.
Would you share a small sample app to help me reproduce the issue?
from ngrev.
I will try... will post it here once ready. Thank you.
from ngrev.
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.
ngrev doesn't support the exclude
and include
properties of tsconfig.json
. Try to drop them and see if it works.
from ngrev.
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.
Would you share a minimum demo I can reproduce the issue with?
from ngrev.
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.
@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.
@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.
@augustincalin would you try again? Version 0.0.18 updates the compiler.
from ngrev.
Hi @mgechev, I had the same issue as @augustincalin before 0.0.18. Now, I get this message:
I can't share the source, sorry - but I wanted to share the error just in case it was useful to you.
from ngrev.
This is unrelated to the reported original issue.
from ngrev.
Related Issues (20)
- Broken build HOT 6
- Duplicated application root module HOT 4
- basic question angularJS and JSP
- can't parse nx app HOT 1
- Support - I cannot understand how it's working.
- Cannot drag vertically
- error parsing dependencies if a service has an inherited constructor.
- Error while parsing project for Angular 12 App HOT 3
- Macos version
- Error parsing project HOT 8
- Error parsing with lazy loading modules HOT 1
- useFactory with Lambda fails HOT 1
- Injectables visualisation HOT 4
- feature: component's detail view
- feature: component's view
- feature: additional view with analysed info
- bug: show libs option doesn't work in module view
- feature: change colour of libs modules
- feature(module view): show modules where the selected module is imported
- Add support for template visualization
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 ngrev.