-1

Angular version of my project

"@angular/cdk": "^11.2.9",
"@angular/common": "^11.2.10",
"@angular/compiler": "^11.2.10",
"@angular/compiler": "^11.2.10",
"@angular/core": "^11.2.10",
"@angular/localize": "^11.2.10",
"ts-node": "9.1.1", 
"typescript": "^4.1.5"
////////////////
"nodeVersion" : "14.16.1"
"npmVersion" : "6.14.12"

My project dependencies are package.json

enter image description here

I get the following error when I use the ng build --prod --aot command

enter image description here

I searched for this error and came across this link

According to the instructions they gave, I used these commands to re-install the packages according to the Angular version

I used these commands

npm uninstall tailwindcss

npm install -D tailwindcss@latest postcss@latest autoprefixer@latest

After running the commands, I ran the ng build --prod --aot command again

enter image description here

Now the error he gave me is a little different and relates to this link

Now our friends say that something has to be disabled so that this process might work

enter image description here

Now I do not know if this solution is correct or not but I am looking for a better solution that I can use the ng build --prod --aot command

Please, if you think a better solution, please help me

R. Richards
  • 23,283
  • 10
  • 63
  • 62
davod
  • 23
  • 4

0 Answers0