Skip to content

ReferenceError: window is not defined #1464

@mdshahansha

Description

@mdshahansha

⚠️ Check for existing issues before proceeding. ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Where are you using SuperAGI?

Windows

Which branch of SuperAGI are you using?

Main

Do you use OpenAI GPT-3.5 or GPT-4?

GPT-3.5

Which area covers your issue best?

Installation and setup

Describe your issue.

`1 of 1 unhandled error
Server Error
ReferenceError: window is not defined

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
detect
file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/node_modules/echarts/dist/echarts.js (123:54)

file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/node_modules/echarts/dist/echarts.js (97:9)

file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/node_modules/echarts/dist/echarts.js (22:68)
Object.
file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/node_modules/echarts/dist/echarts.js (25:2)
Module._compile
node:internal/modules/cjs/loader (1734:14)
Object..js.....`

How to replicate your Issue?

No response

Upload Error Log Content

1 of 1 unhandled error Server Error ReferenceError: window is not defined This error happened while generating the page. Any console logs will be displayed in the terminal window. Call Stack detect file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/node_modules/echarts/dist/echarts.js (123:54) file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/node_modules/echarts/dist/echarts.js (97:9) file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/node_modules/echarts/dist/echarts.js (22:68) Object. file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/node_modules/echarts/dist/echarts.js (25:2) Module._compile node:internal/modules/cjs/loader (1734:14) Object..js node:internal/modules/cjs/loader (1899:10) Module.load node:internal/modules/cjs/loader (1469:32) Function._load node:internal/modules/cjs/loader (1286:12) TracingChannel.traceSync node:diagnostics_channel (322:14) wrapModuleLoad node:internal/modules/cjs/loader (235:24) Module.require node:internal/modules/cjs/loader (1491:12) require node:internal/modules/helpers (135:16) Object.echarts file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/pages/_app.js (823:18) webpack_require file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/webpack-runtime.js (33:42) eval webpack-internal:/pages/Content/APM/BarGraph.js (9:65) ./pages/Content/APM/BarGraph.js file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/pages/_app.js (115:1) webpack_require file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/webpack-runtime.js (33:42) eval webpack-internal:/pages/Content/APM/ApmDashboard.js (16:70) ./pages/Content/APM/ApmDashboard.js file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/pages/_app.js (104:1) webpack_require file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/webpack-runtime.js (33:42) eval webpack-internal:/pages/Dashboard/Content.js (20:84) webpack_require.a file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/webpack-runtime.js (97:13) eval webpack-internal:/pages/Dashboard/Content.js (1:21) ./pages/Dashboard/Content.js file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/pages/_app.js (533:1) webpack_require file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/webpack-runtime.js (33:42) eval webpack-internal:/pages/_app.js (10:76) webpack_require.a file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/webpack-runtime.js (97:13) eval webpack-internal:/pages/_app.js (1:21) ./pages/_app.js file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/pages/_app.js (643:1) webpack_require file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/webpack-runtime.js (33:42) webpack_exec file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/pages/_app.js (1141:39) file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/pages/_app.js (1142:28) Object. file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/.next/server/pages/_app.js (1145:3) Module._compile node:internal/modules/cjs/loader (1734:14) Object..js node:internal/modules/cjs/loader (1899:10) Module.load node:internal/modules/cjs/loader (1469:32) Function._load node:internal/modules/cjs/loader (1286:12) TracingChannel.traceSync node:diagnostics_channel (322:14) wrapModuleLoad node:internal/modules/cjs/loader (235:24) Module.require node:internal/modules/cjs/loader (1491:12) require node:internal/modules/helpers (135:16) requirePage file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/node_modules/next/dist/server/require.js (156:12) file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/node_modules/next/dist/server/load-components.js (65:65) process.processTicksAndRejections node:internal/process/task_queues (105:5) async loadComponentsImpl file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/node_modules/next/dist/server/load-components.js (63:33) async DevServer.findPageComponentsImpl file:///Users/mohammadshahansha/Desktop/GitHub/open_source/SuperAGI/gui/node_modules/next/dist/server/next-server.js (759:36)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions