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

Unable to build in Production #3266

Closed
TheAifam5 opened this issue Apr 13, 2019 · 6 comments
Closed

Unable to build in Production #3266

TheAifam5 opened this issue Apr 13, 2019 · 6 comments

Comments

@TheAifam5
Copy link

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start?sadas

Steps to reproduce

  1. Create a NgModule
  2. Add to that module the "NzMenuModule".
  3. Build in production

What is expected?

Should not stop the compilation and should not use typings to resolve the class, but a real .ts files.

What is actually happening?

Unexpected value 'NzMenuModule in node_modules/ng-zorro-antd/ng-zorro-antd.d.ts' imported by the module 'ServicesModule in src/app/core/services/services.module.ts'. Please add a @NgModule annotation.

Environment Info
ng-zorro-antd 7.1.0
Browser NOT RELATED

Not possible to build on Stacklitz in Production mode.

@vthinkxie
Copy link
Member

@vthinkxie
Copy link
Member

we do not support secondary module import now, plz follow #3234

@wzhudev
Copy link
Member

wzhudev commented Apr 14, 2019

Duplicate of #700.

@wzhudev wzhudev closed this as completed Apr 14, 2019
@fabioemoutinho
Copy link

7.4.0 reintroduces this problem @wendzhue , happened to me with NzButtonModule, with a shared module that imports and exports the NzButtonModule (among others).

ERROR in : Unexpected value 'NzButtonModule in C:/pf/node_modules/ng-zorro-antd/ng-zorro-antd.d.ts' imported by the module 'SharedModule in C:/pf/apps/pf/src/app/shared/shared.module.ts'. Please add a @NgModule annotation.

@vthinkxie
Copy link
Member

@fabioemoutinho we will fix it today, thanks for your report

@vthinkxie vthinkxie reopened this May 21, 2019
@vthinkxie vthinkxie assigned wenqi73 and unassigned vthinkxie May 21, 2019
@wzhudev
Copy link
Member

wzhudev commented May 21, 2019

@fabioemoutinho ng-zorro-antd.metadata.json is messed up because a bug of ng-packagr: ng-packagr/ng-packagr#594. We are fixing this. Thank you for your report.

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

No branches or pull requests

6 participants