Skip to content

Angular-Cli 1.0.0-beta.22-1 activate --aot by default ? #3427

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

Closed
maxime1992 opened this issue Dec 6, 2016 · 7 comments
Closed

Angular-Cli 1.0.0-beta.22-1 activate --aot by default ? #3427

maxime1992 opened this issue Dec 6, 2016 · 7 comments

Comments

@maxime1992
Copy link
Contributor

maxime1992 commented Dec 6, 2016

OS?

Ubuntu 16.10 x64

Versions.

$ ng -v
angular-cli: 1.0.0-beta.22-1
node: 6.8.0
os: linux x64

Repro steps.

I updated this morning to "angular-cli": "1.0.0-beta.22-1" and I have a strange behaviour. It seems that aot is now activated by default. (I didn't change anything to my code).

The log given by the failure.

After running as usual ng serve I first ran into error like :

Error encountered resolving symbol values statically. Reference to a non-exported function

Or

Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function

The big problem here is not even to make my code aot compliant (and I did).
The problem is not to strip out custom decorators (see #2799).

Before that update, the app I'm working on could not be deployed using --aot because of that.
And we said at work that it's fine till we can dev and hopefully this feature would come soon.

But now, I do have the same problem in dev, which is really a problem.
(I'll have to go back to beta-21 until it get fixed).

Mention any other details that might be useful.

To reproduce :

git clone https://gitlab.com/victornoel/petals-cockpit.git
git checkout front/upgrade-angular-cli-beta-22
cd petals-cockpit/frontend
yarn
# or : npm i
ng serve

Thanks for your awesome work on angular-cli !

@elvirdolic
Copy link

dupe of #3368

@montella1507
Copy link

It is using AOT=true (cannot be disabled) by default IN EVERY version now, because of benevolent dependencies on ngtools/webpack.. this is the hell of NPM.

We cannot even build our applications now..

@maxime1992
Copy link
Contributor Author

@montella1507 I heard about the ngtools/webpack problem and as it's a problem of ^ on a version number I really think that using yarn would be a great idea to avoid this kind of problem.

Anyway until they figure something out, I wiped my node_modules, uninstalled angular-cli globally and reinstalled it in beta21 (same for local).

@montella1507
Copy link

i would try, thanks. I think the entire "allow to install newer- - nonbreaking changes version" in NPM is only road to hell and terrible dead.

@montella1507
Copy link

montella1507 commented Dec 6, 2016

Error: AppModule is not an NgModule

IS there ANY working version? I dont think so...

i did:

  1. Rimrafed node_modules
    2)Changed version in packages to beta21.
  2. yarn
  3. yarn ... ng build (because ng server just got frozen without any error).
    afaik yarn ng build will use LOCAL angular-cli not global.. but maybe they have changed it again silently.
    I am really thinking about switching to React in last weekes, becase with every new version, there are 1000 problems with build proccess and breaking (undocumented) changes. :-(

@hansl
Copy link
Contributor

hansl commented Dec 6, 2016

Closing this as duplicate of #3368

@hansl hansl closed this as completed Dec 6, 2016
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
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

4 participants