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

[vite] Error when evaluating SSR module #273

Open
mahibisht opened this issue Sep 22, 2024 · 0 comments
Open

[vite] Error when evaluating SSR module #273

mahibisht opened this issue Sep 22, 2024 · 0 comments

Comments

@mahibisht
Copy link

Angular Version : 18+
Dependencies
"angular-plotly.js": "^6.0.0",
"plotly.js-dist-min": "^2.35.2",

devDependencies
"@types/plotly.js-dist-min": "^2.3.4"

I am able to start the application, however getting this errror,

11:23:53 PM [vite] Error when evaluating SSR module /@fs/C:/Users/SomeUser/Desktop/source-code/MyAngularApp/.angular/cache/18.1.1/vite/deps_ssr/plotly__js-dist-min.js?v=c24ab8f7:
|- ReferenceError: self is not defined
at node_modules/plotly.js-dist-min/plotly.min.js (C:\Users\SomeUser\Desktop\source-code\MyAngularApp.angular\cache\18.1.1\vite\deps_ssr\plotly__js-dist-min.js:13:7)
at __require2 (C:\Users\SomeUser\Desktop\source-code\MyAngularApp.angular\cache\18.1.1\vite\deps_ssr\chunk-NQ4HTGF6.js:44:50)
at eval (C:\Users\SomeUser\Desktop\source-code\MyAngularApp.angular\cache\18.1.1\vite\deps_ssr\plotly__js-dist-min.js:145848:16)
at async instantiateModule (file:///C:/Users/SomeUser/Desktop/source-code/MyAngularApp/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:53451:5)

11:23:53 PM [vite] Error when evaluating SSR module /chunk-4EVLDWLS.mjs:
|- ReferenceError: self is not defined
at node_modules/plotly.js-dist-min/plotly.min.js (C:\Users\SomeUser\Desktop\source-code\MyAngularApp.angular\cache\18.1.1\vite\deps_ssr\plotly__js-dist-min.js:13:7)
at __require2 (C:\Users\SomeUser\Desktop\source-code\MyAngularApp.angular\cache\18.1.1\vite\deps_ssr\chunk-NQ4HTGF6.js:44:50)
at eval (C:\Users\SomeUser\Desktop\source-code\MyAngularApp.angular\cache\18.1.1\vite\deps_ssr\plotly__js-dist-min.js:145848:16)
at async instantiateModule (file:///C:/Users/SomeUser/Desktop/source-code/MyAngularApp/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:53-UI.angular\cache\18.1.1\vite\deps_ssr\plotly__js-dist-min.js:13:7)
at __require2 (C:\Users\SomeUser\Desktop\source-code\MyAngularApp.angular\cache\18.1.1\vite\deps_ssr\chunk-NQ4HTGF6.js:44:50)
at eval (C:\Users\SomeUser\Desktop\source-code\MyAngularApp.angular\cache\18.1.1\vite\deps_ssr\p-UI.angular\cache\18.1.1\vite\deps_ssr\plolotly__js-dist-min.js:145848:16)
at async instantiateModule (file:///C:/Users/SomeUser/Desktop/source-code/MyAngularApp/node_modul_ssr\chunk-NQ4HTGF6.js:44:50)es/vite/dist/node/chunks/dep-C1-ZB6nQ.js:53451:5) lotly__js-dist-min.js:145848:16)
ERROR ReferenceError: self is not defined es/vite/dist/node/chunks/dep-C1-ZB6nQ.js:53
at node_modules/plotly.js-dist-min/plotly.min.js (C:\Users\SomeUser\Desktop\source-code\MyAngularApp.angular\cache\18.1.1\vite\deps_ssr\plotly__js-dist-min.js:13:7)
at __require2 (C:\Users\SomeUser\Desktop\source-code\MyAngularApp.angular\cache\18.1.1\vite\deps-UI.angular\cache\18.1.1\vite\deps_ssr\plo_ssr\chunk-NQ4HTGF6.js:44:50)
at eval (C:\Users\SomeUser\Desktop\source-code\MyAngularApp.angular\cache\18.1.1\vite\deps_ssr\p_ssr\chunk-NQ4HTGF6.js:44:50)lotly__js-dist-min.js:145848:16) lotly__js-dist-min.js:145848:16)
at async instantiateModule (file:///C:/Users/SomeUser/Desktop/source-code/MyAngularApp/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:53es/vite/dist/node/chunks/dep-C1-ZB6nQ.js:53451:5)

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