Open sean-hill opened 7 years ago
@HsuanXyz here is a repo that reproduces this issue.
Thank!
@sean-hill This is a problem with @ionic/app-scripts v3.0.0
.
Add this for your ./src/theme/variables.scss, suggestion as an temp solution.
...
@import "ionic.theme.default";
// Ionicons
// --------------------------------------------------
// The premium icon font for Ionic. For more info, please see:
// http://ionicframework.com/docs/ionicons/
@import "ionic.ionicons";
// Fonts
// --------------------------------------------------
@import "roboto";
@import "noto-sans";
+ // ion2-calendar
+ // --------------------------------------------------
+ @import "../../ion2-calendar/dist/components/calendar-week.component";
+ @import "../../ion2-calendar/dist/components/calendar.component";
+ @import "../../ion2-calendar/dist/components/month.component";
+ @import "../../ion2-calendar/dist/components/calendar.modal";
@HsuanXyz I thought about doing that, haha. I'll see if it works.
@HsuanXyz this works as a temporary solution until app-scripts
fixes their stuff. Thanks for the great library!!!
Thank you for discover. keep open, help the needy.
Just created a new issue with app-scripts
to see what they think about this issue. π
Thank you @HsuanXyz! My case need another one
@import "../../ion2-calendar/dist/components/month-picker.component";
That's all
@sean-hill I was having same issue when i had imported both ion2-calendar and ionic-calendar in my project. Maybe some files conflicting, as soon as i removed other calendar plugin files, ion2-calendar worked seamless..
updated app-scripts to 3.1.2 and the issue resolves
This problem still occurs, for those who could not reproduce the problem follows this stackblitz
I just installed this amazing library today, and got it working perfectly using
ionic serve
, but after usingionic build ios --prod
it ends up looking this:Using this code:
Any ideas into what may be happening here? Obviously it looks like the CSS is not being applied. Ignore the dark background, that's just my apps theme π