You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which scope/s are relevant/related to the feature request?
create-analog
Information
Some libraries depend on DOM globals, which are not available without the following import:
import'@angular/platform-server/init';
What does it do?
From the docs:
Initializes the server environment for rendering an Angular application.
For example, it provides shims (such as DOM globals) for the server environment.
The import must come before any imports (direct or transitive) that rely on DOM built-ins being available.
I think we should add this as part of the create-analog tool and the Nx plugin.
Describe any alternatives/workarounds you're currently using
Add it manually.
I would be willing to submit a PR to fix this issue
Yes
No
The text was updated successfully, but these errors were encountered:
this solves an issue when libraries might rely on injecting dom elements,
e.g. nx-scroll-bar, which causes the dev server to throw an error as these
dom elements are not available during SSR. however, angular allows us to
stub these elements on the server by importing @angular/platform-server/init.
Closes#664
Which scope/s are relevant/related to the feature request?
create-analog
Information
Some libraries depend on DOM globals, which are not available without the following import:
What does it do?
From the docs:
Initializes the server environment for rendering an Angular application.
For example, it provides shims (such as DOM globals) for the server environment.
The import must come before any imports (direct or transitive) that rely on DOM built-ins being available.
I think we should add this as part of the create-analog tool and the Nx plugin.
Describe any alternatives/workarounds you're currently using
Add it manually.
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: