I encountered a similar issue with the Dari (Persian) language, which is also right-to-left (RTL). The solution I discovered was to adjust the versions of material and angular related packages in package.json by specifying an exact match without using the ^
or ~
prefixes.
This is how my package.json file looks after the changes:
"dependencies": {
"@angular-devkit/core": "8.0.6",
"@angular/animations": "8.0.3",
"@angular/cdk": "8.1.1",
"@angular/common": "8.2.14",
"@angular/compiler": "8.2.14",
"@angular/core": "8.2.14",
"@angular/flex-layout": "8.0.0-beta.26",
"@angular/forms": "8.2.14",
"@angular/http": "7.2.7",
"@angular/material": "8.0.1",
"@angular/material-moment-adapter": "5.0.0-rc.1",
"@angular/platform-browser": "8.2.14",
"@angular/platform-browser-dynamic": "8.2.14",
"@angular/router": "8.2.14"
}
After making these edits to package.json, it's important to delete the package-lock.json and node_modules folders before running npm i
again.