-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server Side Rendering Error #17704
Comments
Thanks for reporting this! Unfortunately, we need a way to reproduce this so we can help. As you mentioned, it can't be reproduced with new workspaces, so we can't see what's wrong and could be related to your specific setup/environment. Please provide a repo where the issue can be reproduced or at least some detailed reproduction steps so we can troubleshoot the issue. |
This may be unrelated, but upon updating an †We are stuck at |
@KeithGillette Angular 16.1 is still not officially supported by Nx so issues can be expected. We're adding support for it on #17155 which has taken longer than expected due to Cypress not supporting Angular 16.1. |
@shanieMoonlight this seems to be an issue with a transitive dependency from the Looking through the comments in that issue, it seems to be caused by conflicting versions of the I'm closing this issue since it's not caused by Nx. Please follow the linked issue in the Angular CLI repo for updates. |
Ok, I'll check it out. |
Thanks! I had the same issue, installing domhandler separately fixed the problem. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
I've set up Server Side Rendering using the procedure described here: https://nx.dev/packages/angular/generators/setup-ssr.
Everything seems to be set up properly and the code compiles .
Compiled successfully.
** Angular Universal Live Development Server is listening on http://localhost:4200/, open your browser on http://localhost:4200/ **
Angular is running in development mode.
When I open it in the browser I get a TypeError (document.documentElement.setAttribute is not a function).
The browser just shows a print out of the stacktrace.
This happens with all my applications.
I have generated new applications (using generate -> application ) and added nothing else to make sure it wasn't any of my library code causing the error, but the error still occurs.
I have created a brand new workspace and it seems to work, so it's probably due to something in this workspace but I don't know what.
It would take me a long time to recreate it with all the libs and secondary entry points, so I'm hoping there is some way around it.
Expected Behavior
I expected the app to prerendered and served.
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: