Open yura-moryliak opened 6 years ago
Did you find a solution?
Unfortunately nope, to save time i'm using https://github.com/ZouYouShun/ngxf-uploader component to finish my SSR.
@sconix @yura-moryliak The issue is coming from dropzone.directive.ts
. The import * as Dropzone from 'dropzone';
line will cause this issue. Dropzone should be imported using require() inside of a isPlatformBrowser block. The only caveat is that you have to set the moduleResolution in your tsconfig to node. This should fix all the SSR issues. Let me know if you need a PR.
Hi there! I have a problem with Angular SSR when i'm running npm run serve:ssr. I'm facing issue with contentLoaded(window, Dropzone._autoDiscoverFunction);
Is there exist a solution for this case? Thanks