forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 18
Developing frontend
Ondrej Kosarko edited this page Jun 18, 2024
·
1 revision
- Open console
- Type in setTimeout(()=>{debugger;},5000); // after 5 seconds debug mode will be started where element should pop up
- Press Enter
- Use
fixture.whenStable().then(() => {
- Maybe it throw error
An error was thrown in afterAll
then check this stackoverflow thread.afterEach(() => {fixture.destroy();});
solved this error.
this.translate.get is not a function
- maybe do not define a new translateServiceStub but use TranslateModule.forRoot(),
in the imports.
It is possible to disable SSR in production by using
environment:
universal:
preboot: false
SOMETIMES HOWEVER, FOR WHATEVER REASON, THE CONFIG FOR THE VERY SAME THING IS DIFFERENT:
universal:
preboot: false
DO NOT ASK ME WHY, FOR I DO NOT KNOW. TRY BOTH VARIANTS, AND SEE IF ANY WORKS. HOW AND WHY IS IT SUDDENLY CHANGED LIKE THIS.