kordeviant / mat-datepicker-module-persian

Persian Jalali datepicker for Angular Material - dependent on (material, cdk, moment-jalaali)
https://kordeviant.github.io/mat-datepicker-module-persian/
MIT License
95 stars 15 forks source link

moduleId should be a string in "MdCalendarBody" #2

Open hdm91 opened 6 years ago

hdm91 commented 6 years ago

in chrome i got this error : moduleId should be a string in "MdCalendarBody". See https://goo.gl/wIDDiL for more information.

package.json: "devDependencies": { "angular/animations": "^5.2.5", "angular/cli": "^1.7.4", "angular/common": "^5.2.5", "angular/compiler": "^5.2.5", "angular/compiler-cli": "^5.2.9", "angular/core": "^5.2.5", "angular/forms": "4.2.5", "angular/http": "4.2.5", "angular/platform-browser": "^5.2.5", "angular/platform-browser-dynamic": "^5.2.5", "angular/platform-server": "^5.2.5", "angular/router": "^5.2.5", "ngtools/webpack": "^1.10.2", "types/chai": "4.0.1", "types/jasmine": "2.5.53", "types/jquery": "^3.3.1", "types/webpack-env": "1.13.0", "angular2-router-loader": "0.3.5", "angular2-template-loader": "0.6.2", "aspnet-prerendering": "^3.0.1", "aspnet-webpack": "^2.0.3", "awesome-typescript-loader": "3.2.1", "bootstrap": "3.3.7", "chai": "4.0.2", "css": "2.2.1", "css-loader": "0.28.4", "es6-shim": "0.35.3", "event-source-polyfill": "0.0.9", "expose-loader": "0.7.3", "extract-text-webpack-plugin": "2.1.2", "file-loader": "0.11.2", "html-loader": "0.4.5", "isomorphic-fetch": "2.2.1", "jasmine-core": "2.6.4", "jquery": "3.2.1", "json-loader": "0.5.4", "karma": "1.7.0", "karma-chai": "0.1.0", "karma-chrome-launcher": "2.2.0", "karma-cli": "1.0.1", "karma-jasmine": "1.1.0", "karma-webpack": "2.0.3", "preboot": "4.5.2", "raw-loader": "0.5.1", "reflect-metadata": "0.1.10", "rxjs": "^5.5.6", "style-loader": "0.18.2", "to-string-loader": "1.1.5", "typescript": "^2.4.1", "url-loader": "0.5.9", "webpack": "2.5.1", "webpack-hot-middleware": "2.18.2", "webpack-merge": "4.1.0", "zone.js": "0.8.12" }, "dependencies": { "angular-persian/material-date-picker": "^1.0.3", "angular/cdk": "^5.2.1", "angular/material": "^5.2.1", "bootstrap-vertical-tabs": "^1.2.2", "enhanced-resolve": "^4.0.0", "jalali-moment": "^3.1.1", "jquery": "^3.2.1", "material-design-icons": "^3.0.1", "moment-jalaali": "^0.7.2" }

I think in MdCalendarBody moduleId should be string in this way: module.id.toString() or module.id + '' or remove module.id if it doesn't break any thing

kordeviant commented 6 years ago

I will remove all module ids in this release. current repo contains the working example meanwhile you can check it out.