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
how to handle "document is not defined" in ng17 ssr #55254
Comments
Hi, |
Please dont give up on this topic. Look at my repo. the error is caused by simply having the imort in a component. so in the repo how would you apply that advice of As this forum might not be the correct place to find help. where do you recommend i find help? |
This means you'll likely need to import your library dynamicaly. (via a dynamic import). Stackoverflow or the Angular Community discord are good places for getting help from the community. |
You're using a default export here, you need to access that constructor.
|
That seems to work. I updated the repo https://github.com/ohabash/ng-ssr-quill |
Thanks, it's worked!!! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
No
Description
I am using QuillJs ... After installing it SSR stops working. I tried JSDOM and other advices online. Looking for the most modern advice. Please see my reproduction of the issue.
Please provide a link to a minimal reproduction of the bug
https://github.com/ohabash/ng-ssr-quill
https://stackoverflow.com/questions/78295372/angular-17-ssr-document-is-not-defined-when-using-quilljs
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: