Comments (12)
I was able to solve pdfjs error issue by using react-pdf version 7.0.0 lib but now stuck on below error. I tried several version on echarts lib but not able to solve. Does anyone here able to run full backend and frontend on macos?. If yes, then can you please share the package.json file?. It looks to be libs mismatch problem.
error - ReferenceError: window is not defined at detect (/Users/jitendrayadav/OpenAgents/frontend/node_modules/echarts/dist/echarts.js:123:54) at /Users/jitendrayadav/OpenAgents/frontend/node_modules/echarts/dist/echarts.js:97:9 at /Users/jitendrayadav/OpenAgents/frontend/node_modules/echarts/dist/echarts.js:22:68 at Object.<anonymous> (/Users/jitendrayadav/OpenAgents/frontend/node_modules/echarts/dist/echarts.js:25:2) at Module._compile (node:internal/modules/cjs/loader:1376:14) at Module._extensions..js (node:internal/modules/cjs/loader:1435:10) at Module.load (node:internal/modules/cjs/loader:1207:32) at Module._load (node:internal/modules/cjs/loader:1023:12) at Module.require (node:internal/modules/cjs/loader:1235:19) at require (node:internal/modules/helpers:176:18) at Object.echarts (/Users/jitendrayadav/OpenAgents/frontend/.next/server/pages/index.js:1422:18)
from openagents.
Hi, it seems the pdfjs is running in node environment instead of browser environment. Could you double check the frontend script to install and run, npm install
and npm run dev
, which result in correct env in our test?
If it still does not work, you could comment out the code related to pdfjs, as our frontend no longer supports pdf.
from openagents.
Worked with node: 18.7.0 npm: 8.15.0 version
from openagents.
Hi, I think there's a similar issue about pdf-js in #24. Could you try that solution and tell us if that works?
from openagents.
I think the above issue seems different, though I have tried latest pydantic lib with python 3.10 and 3.11 but facing same issue as I mentioned earlier.
conda list |grep pydantic
openapi-schema-pydantic 1.2.4 pypi_0 pypi
pydantic 2.4.2 pypi_0 pypi
pydantic-core 2.10.1 pypi_0 pypi
from openagents.
Hi @yadavj2008, I'm on macos and the package.json works fine for me.
macOS: Sonoma 14.0
node: 18.7.0
npm: 8.15.0
from openagents.
I think the installing errors you encountered might be related to some other existing packages in your nodejs environment, maybe you can try switching to a new environment by using tools like nvm.
from openagents.
I encountered the same problem and still haven't solved it
from openagents.
I was able to solve pdfjs error issue by using react-pdf version 7.0.0 lib but now stuck on below error. I tried several version on echarts lib but not able to solve. Does anyone here able to run full backend and frontend on macos?. If yes, then can you please share the package.json file?. It looks to be libs mismatch problem.
error - ReferenceError: window is not defined at detect (/Users/jitendrayadav/OpenAgents/frontend/node_modules/echarts/dist/echarts.js:123:54) at /Users/jitendrayadav/OpenAgents/frontend/node_modules/echarts/dist/echarts.js:97:9 at /Users/jitendrayadav/OpenAgents/frontend/node_modules/echarts/dist/echarts.js:22:68 at Object.<anonymous> (/Users/jitendrayadav/OpenAgents/frontend/node_modules/echarts/dist/echarts.js:25:2) at Module._compile (node:internal/modules/cjs/loader:1376:14) at Module._extensions..js (node:internal/modules/cjs/loader:1435:10) at Module.load (node:internal/modules/cjs/loader:1207:32) at Module._load (node:internal/modules/cjs/loader:1023:12) at Module.require (node:internal/modules/cjs/loader:1235:19) at require (node:internal/modules/helpers:176:18) at Object.echarts (/Users/jitendrayadav/OpenAgents/frontend/.next/server/pages/index.js:1422:18)
I meet the same problem as you(echarts caused some error) . Then I tried to reinstall node and npm, but this problem can still not be solved. My node version is v21.1.0, npm version is 10.2.0. Do you have other solution yet?
from openagents.
Hi @yadavj2008, I'm on macos and the package.json works fine for me. macOS: Sonoma 14.0 node: 18.7.0 npm: 8.15.0
I changed my node and npm version to match yours and it worked!
from openagents.
Btw, it seems to be a known issue for node 21.0, please refer to this issue apache/echarts#19233
from openagents.
Worked with node: 18.7.0 npm: 8.15.0 version
This solution worked for the echarts issue.
from openagents.
Related Issues (20)
- MultiProcess problem HOT 5
- how to connect app with sql DB? HOT 3
- `allowed_file` uploading bypass by simply changing file extension HOT 2
- how to extend a new llm for the agent? HOT 3
- Is there something works like session_id or user_id? HOT 4
- what version of langchain used
- WeBot source code HOT 5
- Error when run docker-compose build
- extend model HOT 3
- langchain 0.1 support HOT 5
- This drawing is really nice. What app did you use to draw it? HOT 3
- why do it need manually asked to activate the plugin ? HOT 2
- how to support baidu erine model HOT 2
- Require mongo db but how to install? HOT 4
- How to enable login authentication in local deployment? HOT 2
- Google OAuth Signup failing on https://chat.xlang.ai/ HOT 2
- Installing custom Python libraries into xlang-code-interpreter HOT 2
- Chat Login Error And Not Work Due To CORS HOT 2
- Discrepancy Between Mentioned and Available Plugins in Repository HOT 8
- Encountering SSL Error While Starting Flask Server HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openagents.