Tuesday, January 10, 2023

angular fails rendering elements (dropdowns, edtitor, etc.)


>PROBLEM

Suddenly, the angular project fails rendering some elements, like dropdowns, editors, and they disappear or stops working.


>SOLUTION

*** SEE ADDITIONAL NOTES BELOW, BEFORE PROCEEDING.


1. Stop the app.

2. Clean the cache:

Linux:

$ANGULAR_PROJECT/modules/setget-ax/ramnode1/.angular/cache/$VERSION/angular-webpack/*

$ANGULAR_PROJECT/drillback/modules/setget-ax/ramnode1/.angular/cache/$VERSION/babel-webpack/*


Example:

rm -Rf $ANGULAR_PROJECT/drillback/modules/setget-ax/ramnode1/.angular/cache/13.3.10/babel-webpack/*


Windows using CygWin

rm -Rf $ANGULAR_PROJECT\modules\setget-ax\ramnode1\.angular\cache\$VERSION\angular-webpack\*

rm -Rf $ANGULAR_PROJECT\drillback\modules\setget-ax\ramnode1\.angular\cache\$VERSION\babel-webpack

3. Restart the app


*** ADDITIONAL NOTES:

1. Instead of deleting the cache, you may move to a temporary folder just in case of rollback.


2. Sometimes, if a widget freezes, it may be a browser issue.

Before cleaning the cash, try to close the browser and make sure that there are no remaining threads.

Use tasklist (Windows) or ps aux (Linux).

Reopen the browser and test again.


3. Sometimes, Windows may get unstable, mostly after a system update.
Restart Windows.
Yeh! It may be strange, but it happened to me sometimes that just rebooting Windows solved the issue. 



>ENV

Angular CLI: 14.2.9
Node: 16.13.1
Package Manager: npm 8.5.4
OS: win32 x64


[MYREF]:
y;faq-angular fails rendering elements (dropdowns, edtitor, etc.)<memo<angular;.

eclipse: java: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" or Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

  >PROBLEM Using Eclipse, you try to run a simple logging test using "org.slf4j.Logger" like the sample below: package Test; im...