Skip to content
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

ng 16 error when using ssr #1022

Open
eric-gitta-moore opened this issue Dec 12, 2023 · 0 comments
Open

ng 16 error when using ssr #1022

eric-gitta-moore opened this issue Dec 12, 2023 · 0 comments

Comments

@eric-gitta-moore
Copy link

Since codemirror is directly introduced in the code, navigator is called indirectly, causing an error.

/home/win/workspace/fleet/ngx-charts/dist/ngx-charts/server/main.js:58607
  var userAgent = navigator.userAgent;
                  ^

ReferenceError: navigator is not defined
    at /home/win/workspace/fleet/ngx-charts/dist/ngx-charts/server/main.js:58607:19
    at /home/win/workspace/fleet/ngx-charts/dist/ngx-charts/server/main.js:58601:28
    at Object.18394 (/home/win/workspace/fleet/ngx-charts/dist/ngx-charts/server/main.js:58603:2)
    at __webpack_require__ (/home/win/workspace/fleet/ngx-charts/dist/ngx-charts/server/main.js:293642:42)
    at Module.86629 (/home/win/workspace/fleet/ngx-charts/dist/ngx-charts/server/main.js:27671:68)
    at __webpack_require__ (/home/win/workspace/fleet/ngx-charts/dist/ngx-charts/server/main.js:293642:42)
    at Module.55041 (/home/win/workspace/fleet/ngx-charts/dist/ngx-charts/server/main.js:18776:74)
    at __webpack_require__ (/home/win/workspace/fleet/ngx-charts/dist/ngx-charts/server/main.js:293642:42)
    at Module.36747 (/home/win/workspace/fleet/ngx-charts/dist/ngx-charts/server/main.js:22190:72)
    at __webpack_require__ (/home/win/workspace/fleet/ngx-charts/dist/ngx-charts/server/main.js:293642:42)

A server error has occurred.
@eric-gitta-moore eric-gitta-moore mentioned this issue Jan 3, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant