-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
EditorModule doesn't support SSR #8817
Comments
Same problem with ToastModule. https://www.primefaces.org/primeng/showcase/#/toast
|
i have the same problem |
Same problem with p-icon |
Hi, So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Best Regards, |
hello @mertsincan, I cannot use primeng-editor with Angular SSR ( Angular 15 ) I get the following error:
Can you please have a look? |
Same exact issue as @Raul52 |
Same issue as @Raul52 |
Any updates on this? |
This issue has been bugging me a lot, so I created a custom module extending the default one, and I created a fix PR 14232. Hope it gets considered soon. |
FIX: Editor Module SSR Compatibility #8817
Fixed in #14232 |
I am still facing this issue. Particularly i am not sure about the part in
Any ideas? |
FIX: Editor Module. ReferenceError: document is not defined. #8817
Since you implemented this fix, the editor doesn't work inside of dialogs! |
I'm submitting a ...
Current behavior
The
EditorModule
doesn't support the server side rendering (SSR).I have faced such a problem when have migrated from Angular 7 to Angular 9 (as well as PrimeNG 7 -> 9). There was a necessity to change package import for
MessageService
because service was moved from theprimeng/components/common/messageservice
package. I used the IDE hint to fix import problem and specifiedimport {MessageService} from "primeng"
that as it turned out to fetch all components from PrimeNG includingEditorModule
.Specifying the appropriate package for component (like
primeng/api
forMessageService
) solves this problem.However, the problem with at least the
EditorModule
still remains.Expected behavior
The
EditorModule
has to support the server side rendering (SSR).Minimal reproduction of the problem with instructions
EditorModule
from the PrimeNGng add @nguniversal/express-engine
npm run dev:ssr
After some investigation I've found that this code belongs to the
quill
on which Editor based.Please tell us about your environment:
Language: [TypeScript 3.7.5]
Other details:
The text was updated successfully, but these errors were encountered: