Repository navigation
Closed
Labels
Milestone
Description
🐞 Bug report
Command (mark with an x)
- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
Yes
Description
I have created an angular project with enabling ivy mode using below commands
ng new hello-ivy --enable-ivy
When I try to serve my application using below command
ng serve
it does not throw any compilation error but when I try to load this in browser [chrome] it throws below error:
When i try to take prod build using below command
ng build --prod
it throws below compilation error :
I don't know why this issue occurs
🔬 Minimal Reproduction
-
Download below sample -
ivySample.zip -
Give below command to install our third-party package
npm i @syncfusion/ej2-angular grids
Or Download this and place it inside node_modules folder
🌍 Your Environment
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 8.0.1
Node: 10.16.0
OS: win32 x64
Angular: 8.0.0
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.800.1
@angular-devkit/build-angular 0.800.1
@angular-devkit/build-optimizer 0.800.1
@angular-devkit/build-webpack 0.800.1
@angular-devkit/core 8.0.1
@angular-devkit/schematics 8.0.1
@angular/cli 8.0.1
@ngtools/webpack 8.0.1
@schematics/angular 8.0.1
@schematics/update 0.800.1
rxjs 6.4.0
typescript 3.4.5
webpack 4.30.0
Anything else relevant?


Activity
kumaresan-subramani commentedon Jun 1, 2019
HI @alan-agius4 ,
Can you check this out?
alan-agius4 commentedon Jun 3, 2019
This seems to be related to ngtsc, @petebacondarwin / @JoostK can you chime in?
I am seeing a different error though
which typically means that ngcc was not run properly.
[-]Enable ivy in anguuar 8 - production build got faled[/-][+]Enable ivy in angular 8 - production build got failed[/+]petebacondarwin commentedon Jun 3, 2019
I notice that you are running Angular v8.0.1. This is not the correct version for trying out IVY. You should install the
nextversion. E.g.alexzuza commentedon Jun 3, 2019
@petebacondarwin
Just tried it with "@angular/compiler-cli": "next", which is 8.1.0-beta.0
Seems Esm5ReflectionHost looks for "decorators" static property of function declaration inside IIFE and will never find.
ej2-angular-grids.es5.js
From source code
angular/packages/compiler-cli/ngcc/src/host/esm5_host.ts
Lines 304 to 310 in 8154433
JoostK commentedon Jun 3, 2019
@alexzuza It's known, see #30795
vgb1993 commentedon Jun 6, 2019
What's the status of this? I get the same error:
ERROR in Unexpected value 'PostService in C:/myAngularApp/src/app/service/posts.
component.ts' declared by the module 'AppModule in C:/myAngularApp/src/app/app.m
odule.ts'. Please add a @Pipe/@Directive/@component annotation.
kumaresan-subramani commentedon Jun 14, 2019
HI @JoostK ,
Can we get any update regarding this?
petebacondarwin commentedon Jun 28, 2019
This should be fixed in v8.1.0-rc.0 - @kumaresan-subramani can you check?
kumaresan-subramani commentedon Jul 1, 2019
HI @petebacondarwin , When should i expect this release?
JoostK commentedon Jul 1, 2019
@kumaresan-subramani it's already on NPM
23 remaining items
JoostK commentedon Nov 18, 2019
@kumaresan-subramani Ah, I'm super confused by all this, but it appears I did test
@syncfusion/ej2-angular-gridand it's basically failing because of the same reason: the@ComponentMixins([ComponentBase])is applied after the Ivy runtime has captured the component's details, so the overridden lifecycle hooks are never called.PritiMaurya commentedon Nov 24, 2019
ERROR in Failed to find exported name of node (class BsDatepickerDayDecoratorComponent {
})
I am getting this error
kumaresan-subramani commentedon Nov 24, 2019
@PritiMaurya , can you explain in detail please
PritiMaurya commentedon Nov 24, 2019
my project is in angular 8 i want enable Ivy in my project but after enable that I am getting error in ngx bootstrap
kumaresan-subramani commentedon Dec 3, 2019
@JoostK ,
Any update on this issue?
kolkov commentedon Dec 3, 2019
@kumaresan-subramani try 9.0.0-rc.4, maybe this fixed in next versions.
kumaresan-subramani commentedon Dec 3, 2019
@kolkov , i have already tried but same issue occurs.
kolkov commentedon Dec 3, 2019
@kumaresan-subramani I use 9.0.0 beats and rcs versions for a long time, it's works as expected.
kumaresan-subramani commentedon Dec 3, 2019
@kolkov ,
Refer below issue this is cause of problem #31495
kolkov commentedon Dec 3, 2019
@kumaresan-subramani I think we need to fix all external packages that caused this issue.
petebacondarwin commentedon Dec 9, 2019
Moving the discussion to #31495.
angular-automatic-lock-bot commentedon Jan 9, 2020
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.