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

Angular4 AOT摇树优化报错 #169

Closed
hythzx opened this issue Aug 27, 2017 · 3 comments
Closed

Angular4 AOT摇树优化报错 #169

hythzx opened this issue Aug 27, 2017 · 3 comments

Comments

@hythzx
Copy link

hythzx commented Aug 27, 2017

根据Angular官方文档的AOT配置( https://angular.cn/guide/aot-compiler ),到 Rollup插件 这一块,运行 node_modules/.bin/rollup -c rollup-config.js 报下列错误:

[!] Error: Cannot call a namespace ('moment')
node_modules/ng-zorro-antd/src/release/calendar/nz-calendar.component.js (14:26)
12: this._yearUnit = '年';
13: this._monthUnit = '月';
14: this._showMonth = moment(new Date()).month();
^
15: this._showYear = moment(new Date()).year();
16: this._value = new Date();

@trotyl
Copy link
Contributor

trotyl commented Aug 27, 2017

Duplicate of #85

@trotyl trotyl marked this as a duplicate of #85 Aug 27, 2017
@whoissj
Copy link

whoissj commented Aug 29, 2017

@hythzx 您好,您这个问题解决了吗?

@lock
Copy link

lock bot commented Feb 19, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants