-
Notifications
You must be signed in to change notification settings - Fork 357
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
Prod build fails with 1.0.0-rc.4 #1114
Comments
I am experiencing similar issues with
ng build itself works but when I run ERROR in : Unexpected value 'CovalentChipsModule in G:/project1/node_modules/@covalent/core/covalent-core.d.ts' imported by the module 'CovalentModule in G:/project1/src/app/lib/covalent/covalent.module.ts'. Please add a @NgModule annotation. This error happens to all covalent modules. I did a folder comparison with an older version of covalent and figured out there is a difference in the core which could cause the issue: https://github.com/Teradata/covalent/blob/develop/src/platform/core/index.ts has export * from './public-api'; however older version which works [ ng build --prod] successfully has export * from './index'; for the time being I have coped and pasted the older @covalent package folder until a fix comes up. |
@majhoos can you try using the latest? This was supposed to be fixed in rc.4.. but we are noticing people having some issues in AoT on certain cases.. so we want to be sure |
@emoralesb05 , I upgraded to the new version and I can confirm that my issue got resolved. Many thanks. |
Hey, I am having this issue as well with --aot:
|
Hi! When i run
I am working with this dependencies:
I'll be very grateful if you can help me. |
I have same issue with 1.0.0-rc.4. Even upgrade to the latest 1.0.0 would not help. |
@cp1001 Upgrading typescript was the solution. Thanks! |
This is an issue with typescript. Upgrade typescript to version 2.6.2 in your project. |
closing issue as resolved |
Do you want to request a feature or report a bug?
Bug
My app seem to be working fine while running on the development server. But when I do prod build I am getting this error:
My package.json:
If I upgrade typescript to 2.6.2 as suggested here, prod build works fine but then I get a runtime error:
test-file.ts contains TestFile class and it's used in one of the components inputs:
@Input() file: TestFile | undefined;
Interesting thing is that error is gone if I remove | undefined and have only:
@Input() file: TestFile;
The text was updated successfully, but these errors were encountered: