Comments (16)
Totally intermitent , trying to remove some html and run again.. sometime loads at first time. some time not.. some times have to open incognito like 5 times to make the error appear.. =(
really lost here.. now trying to move temporally to without ssr cause is on production
@clbond has an idea on how / where to put breakpoints and do some checkings?
from angular-ssr.
I figure it out... basicly i changed my app to be feature style, so i have a bunch of angular modules..
have been working in this style for a month.. and now i got this error and saw that i included a cycle reference...
was a module calling a service for other modules that was not included as a shared
using ng serve
it was working always.. and in ssr was intermitent..
anyways.. so far so good!! thanks
from angular-ssr.
I continue with this issue.. dont know what to do.. 3 days in a row ... testing all day long.. could not make progress.. will drop ssr for now =(
from angular-ssr.
Hi.. OMG.. i tested so many things.. i think that the last thing that i changes.. was something related to cache and providing app.js ... for some reason the app.js was returning a HTML and not a JS..
and now everything makes sense.. why this was intermitent... as some times app.js was not coming.. this was taking the HTML coming from the server and removing it... because was missing the app.js
so.. in the future.. if you have an issue where the page loads and disappear.. now that it might be app.js that was missing
hope not having to reopen this akakakak
from angular-ssr.
Sorry... but still having this issue... had to disable ssr to make it work =( .. it works perfect without the ssr
as I said is intermitent.. at least on chrome.. i just saw the in firefox always gives this error... load the html from the /
request and after loads the app.js
it removes everything from <aplication
no erros in browser console or express (server side...) .. so really blind here
if you would like to have access to a live version with the error.. please send me a email
from angular-ssr.
When i remove builder.preboot(true)
it seems to be working again..
from angular-ssr.
I have the same error. How to fix preboot? What version of preboot can we use with ssr?
from angular-ssr.
I experienced something similar, it goes away if you do a hard refresh or disable caching in chrome devtools. I think it is some sort of timing issue because if you throttle the chrome speed in dev-tools all seems to work again.
from angular-ssr.
@ktersius indeed.. i experienced the same.. but even ith hard refresh.. some times it gave me the same error.. did u try to remove the preboot to see if that goes away?
from angular-ssr.
This may mean your application is failing to boot properly. At startup, we create a second root <application>
(eg) element and once it is populated with rendered content, preboot hides the server-provided root tag and makes visible the client-built one. If it is disappearing, I would try debugging your application bootstrap process. And where are you calling preboot.complete()
from?
from angular-ssr.
Thanks for answering! Is this correct?
const { prebootClient } = require('preboot/__build/src/browser/preboot_browser');
export class AppModule {
constructor(router: Router, zone: NgZone) {
if (typeof prebootstrap === 'undefined') {
return;
}
const finished = Observable.combineLatest(router.events, zone.onMicrotaskEmpty);
const subscription = finished.subscribe(([event, stable]) => {
if (stable === false) {
return;
}
switch (true) {
case event instanceof NavigationError:
case event instanceof NavigationEnd:
setImmediate(() => prebootClient().complete());
subscription.unsubscribe();
break;
default:
break;
}
});
}
}
from angular-ssr.
This problem only in chrome browser with browser cache enabled.
from angular-ssr.
Can I have access to your code? Are there uncaught exceptions being thrown (either on the server or the client)? It's impossible for me to debug without the code.
from angular-ssr.
Hi.. yes i know.. its hard.. but is no errors at all.. if you would like to.. we can do a call and i show you what is happening.. there is my email in my profile.. just let me know
from angular-ssr.
I have removed setImmediate
from the example. Can you tell me if this fixes your issue? Perhaps you are using a browser that doesn't support setImmediate
from angular-ssr.
Guys, i'm not experiencing this anymore.. even putting preboot back... thanks anyway =)
from angular-ssr.
Related Issues (20)
- Angular Flex Layout Styling Issue HOT 2
- NodeModule.js and osenv.js errors while building using webpack 2.4.1 HOT 6
- ViewChild/ ElementRef gets server side elements instances instead of client side. HOT 2
- different behavior sometime in server-side rendering at build time HOT 1
- The blog content disappear when I refresh the page.(demand-express example) HOT 7
- Can not replicate easy build - Module not found: Error: Can't resolve './app.ts' HOT 3
- No ssr on certain routes. HOT 1
- Shim errors on Demand Express example HOT 1
- SSR Performance App Startup and Rendering Times HOT 1
- Error on postbuild:ng-render HOT 1
- Can't dispatch ngrx/store action more than once from a lazy loaded module HOT 1
- route specific style tags only loaded first time
- Build Issues HOT 1
- Loading stylesheets in reverse order HOT 2
- Examples are not working HOT 1
- How to access a cookie on both platforms HOT 4
- Compatibility with Angular 5 HOT 8
- Cannot find module './app.module'
- Page source not reflecting what is on the screen.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-ssr.