Closed hasanfathi closed 5 years ago
Please make a demo on stackblitz, plunker, ...
i not a problem of using this package its work in my local machine after deploy i get error and my page not render i not any idea for this problem can you help me?
You should ask this kind of question in Stackoverflow, there are more people to help you. good luck
This problem related to my used command for build application.
instead of ng build --prod
command i use this command ng build --prod --aot=false --build-optimizer=false --no-progress
and my problem solved.
I use jalali date picker and add only this item in
package.json
file"ng2-jalali-date-picker": "^2.0.3"
package.json file structure:this package work my local machine, after build my angular app with this command:
ng build --prod
and deploy in server, get this errors in components that contain date picker and my page not render. errors:ERROR TypeError: Cannot read property 'gregorian' of undefined
ERROR TypeError: Cannot read property 'hideInputContainer' of undefined
ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'format' of undefined