Datepicker is not working
What is the expected behavior?
The datepicker project downloaded from stackblitz(https://stackblitz.com/angular/oyxbvlmlqmbx) is not working as expected in local machine.
I have downloaded the datepicker demo from stackblitz, install the node modules & run the project, the datepicker is broken, styles are not loading properly.
What is the current behavior?
Tha datepicker should work in local machine after downloaded as showing in stackblitz
What are the steps to reproduce?
Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
Please download the stackblitz(https://stackblitz.com/angular/oyxbvlmlqmbx) into local machine, do the npm install, then run the project(ng serve), check the datepicker behaviour.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"dependencies": { "rxjs": "6.4.0", "moment": "2.24.0", "core-js": "2.6.3", "zone.js": "0.8.29", "hammerjs": "2.0.8", "@angular/cdk": "7.3.0", "@angular/core": "7.2.2", "@angular/http": "7.2.2", "@angular/forms": "7.2.2", "@angular/common": "7.2.2", "@angular/router": "7.2.2", "@angular/compiler": "7.2.2", "@angular/material": "7.3.0", "web-animations-js": "2.3.1", "@angular/animations": "7.2.2", "@angular/platform-browser": "7.2.2", "angular-in-memory-web-api": "0.5.4", "@angular/material-moment-adapter": "7.3.0", "@angular/platform-browser-dynamic": "7.2.2" }, "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "devDependencies": { "@angular-devkit/build-angular": "~0.10.0", "@angular/cli": "~7.0.2", "@angular/compiler-cli": "~7.0.0", "@angular/language-service": "~7.0.0", "@types/node": "~8.9.4", "@types/jasmine": "~2.8.8", "@types/jasminewd2": "~2.0.3", "codelyzer": "~4.5.0", "jasmine-core": "~2.99.1", "jasmine-spec-reporter": "~4.2.1", "karma": "~3.0.0", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "~2.0.1", "karma-jasmine": "~1.1.2", "karma-jasmine-html-reporter": "^0.2.2", "protractor": "~5.4.0", "ts-node": "~7.0.0", "tslint": "~5.11.0", "typescript": "~3.1.1" }
#Please find below screen shot of datepicker

Is there anything else we should know?
I'm not sure @angular/material is responsible for that. Basically, when you download a project, the generated angular.json does not contain a reference to styles.css file in the build entry of the architect attribute:
...
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/my-app",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [], <== THERE SHOULD BE A REFERENCE TO styles.css HERE
"scripts": []
},
...
You can fix it by putting the reference there by yourself ("src/styles.css") and, maybe, opening an issue at stackblitz repo.
Please keep GitHub issues for bug reports / feature requests. Better avenues for troubleshooting / questions are stack overflow, gitter, mailing list, etc.
(this is a canned response)
resolved. After creating the fresh project using angular cli & install materila in that project, then i was able to run it properly. previously not sure what it was messed up.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.