twinssbc / Ionic2-Calendar

A calendar component based on Ionic framework
https://ionic-calendar-demo.stackblitz.io
MIT License
388 stars 198 forks source link

Module ''*'' has no exported member #14

Closed SHELA closed 7 years ago

SHELA commented 7 years ago

Hi. When i try emulate or build:

[23:40:22] Error: Error at /Users/vlad/apps/eveses3/.tmp/pages/full/full.ngfactory.ts:149:36 [23:40:22] Module ''*'' has no exported member 'Wrapper_CalendarComponent'. [23:40:22] ngc failed [23:40:22] ionic-app-script task: "build" [23:40:22] Error: Error

npm ERR! Darwin 16.0.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build" npm ERR! node v6.9.1 npm ERR! npm v3.10.8 npm ERR! code ELIFECYCLE npm ERR! ionic-hello-world@ build: ionic-app-scripts build npm ERR! Exit status 1

twinssbc commented 7 years ago

@SHELA May I know which version of Ionic, Angular and ionic2-calendar are you using? Did you also follow Note for Ionic Build/Run command to add more lines in your main.prod.ts?

SHELA commented 7 years ago

@twinssbc ionic2-calendar - last from github Ionic 2 Angular 2 when i add to main.prod.ts: Unused import: 'CalendarComponent' Unused import: 'MonthViewComponent' Unused import: 'WeekViewComponent' Unused import: 'DayViewComponent' but build success, but when i can't open page where calendar. seems that some error

twinssbc commented 7 years ago

@SHELA Did you try to run it on IOS? I just found there's some localisation issue on IOS device as below. https://github.com/angular/angular/issues/3333 I added the fix and published a new version, 0.0.12. Could you try it? You also need to add Intl into the dependency. Thanks.

omhybrid commented 7 years ago

i havae same issue any solution?

twinssbc commented 7 years ago

@omhybrid May I know which version of Ionic, Angular and ionic2-calendar are you using? Did you also follow Note for Ionic Build/Run command to add more lines in your main.prod.ts?

omhybrid commented 7 years ago

i solve this thanks @twinssbc

Gtanxingwen commented 7 years ago

image @twinssbc 怎么解决啊

twinssbc commented 7 years ago

@Gtanxingwen May I know which version of Ionic, Angular and ionic2-calendar are you using? Did you also follow Note for Ionic Build/Run command to add more lines in your main.prod.ts?

Gtanxingwen commented 7 years ago

@twinssbc image ionic-calendar 0.0.13

twinssbc commented 7 years ago

@Gtanxingwen what's your Angular version? Also did you add more lines in your main.prod.ts file?

twinssbc commented 7 years ago

@Gtanxingwen You need to add below lines to main.prod.ts

import { CalendarComponent } from 'ionic2-calendar/calendar';
import { MonthViewComponent } from 'ionic2-calendar/monthview';
import { WeekViewComponent } from 'ionic2-calendar/weekview';
import { DayViewComponent } from 'ionic2-calendar/dayview';