-
Notifications
You must be signed in to change notification settings - Fork 50
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
Angular Code Input Component throwing "ERROR ReferenceError: document is not defined #115
Comments
@pmutua Hello, let me check. |
@pmutua Just created a project with angular 17 and the component. It works fine. Here is the project: https://stackblitz.com/edit/stackblitz-starters-zxghts?file=src%2Fmain.ts Do you use SSR? |
Yes, the application has ssr enabled. What is the work around to resolve this? |
Hi @AlexMiniApps thank you for replying, yes the application is ssr enabled. |
@pmutua Actually the component is not ready to be used with SSR, sorry. I need a time to adapt it to make it usable with SSR enabled. |
@pmutua Actually I just checked the lib with the enabled SSR rendering on Angular 17 (17.3) and did not face with any errors. I checked it by the 'serve:ssr:test-app' command.
|
@AlexMiniApps please share the project I check it out. Thank you. |
@pmutua Try to use this one from archive: |
Thank you |
I encountered an error when a component loaded, which is using the Angular Code Input Component. The error message received is:
Details:
The error originates from the Angular Code Input Component and seems to be related to the usage of
document
which is not available when navigating to the route that has component that is using the Angular Code Input Component.Steps to Reproduce:
Expected Behavior:
The component loads successfully after navigation without any errors.
Environment:
Angular version: 17.1.0
Operating System: Windows
Node.js version: v18.19.1
npm: 10.2.4
The text was updated successfully, but these errors were encountered: