Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing project #57

Open
sebastien-A256 opened this issue Aug 16, 2019 · 8 comments
Open

Error parsing project #57

sebastien-A256 opened this issue Aug 16, 2019 · 8 comments

Comments

@sebastien-A256
Copy link

Hi,

I've got the following issue :

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

Users/xxxxxx/front-end/src/app/core/core.routing.ts(11,5): Error during template compile of 'CoreRoutingModule'
  Reference to a local (non-exported) symbols are not supported in decorators but 'routes' was referenced
    Consider exporting 'routes'.

But the AOT compilation is fine. We are using Angular 8.2.
I'm using the latest version of ngrev available for OSX (0.0.27)

Here is tsconfig file and the core.routing file. (file renamed with txt extension for GitHub support)

tsconfig.txt
core.routing.txt

@kiranmate
Copy link

Requesting to provide solution for the issue. I am also getting same

@AndrewAllison
Copy link

I've just stumbled across this on a project we recently upgraded.

Error during template compile of 'AppRoutingModule;
Function expressions are not supported in decorators in 'routes'
Consider changing the function expression into an exported function

It looks to be where we have started using the () => import('../app/') syntax for lazy loading modules.

@sebastien-A256
Copy link
Author

I've just stumbled across this on a project we recently upgraded.

Error during template compile of 'AppRoutingModule;
Function expressions are not supported in decorators in 'routes'
Consider changing the function expression into an exported function

It looks to be where we have started using the () => import('../app/') syntax for lazy loading modules.

I can confirm the link between this usage and the issue.

@mgechev
Copy link
Owner

mgechev commented Sep 9, 2019

Here's #58 as a reference.

In the post version 9 release ngrev will not be functional for certain period of time. It'll require rewrite of the parsing library ngast. It's not yet clear when I'll be able to prioritize it.

@Neuroforge
Copy link

Any update on this issue? Would love to use this project but we have an Angular 9 project and the same error above.

@evan-boissonnot
Copy link

Got a pretty same error :
[Window Title]
Error

[Main Instruction]
Error while parsing project

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

Could not resolve module @angular/core

My project is on angular 10.

@mgechev
Copy link
Owner

mgechev commented Nov 20, 2020

#57 (comment)

This is still relevant. If anyone has the bandwidth to migrate the project to the latest version to ngast, I'd be more than happy to help.

Until then, I'll lock the thread since the problem is in the lack of Ivy support.

Repository owner locked and limited conversation to collaborators Nov 20, 2020
@mgechev
Copy link
Owner

mgechev commented Dec 30, 2020

Some good news. Over the past few days I've been working on Ivy support. You can find it here. It's still not trivial to get the app up and running, but make sure you follow this issue for updates.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants