Giter Site home page Giter Site logo

Comments (12)

yadavj2008 avatar yadavj2008 commented on May 22, 2024 1

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.

ztjhz avatar ztjhz commented on May 22, 2024 1

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.

yadavj2008 avatar yadavj2008 commented on May 22, 2024 1

Worked with node: 18.7.0 npm: 8.15.0 version

from openagents.

BlankCheng avatar BlankCheng commented on May 22, 2024

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.

yadavj2008 avatar yadavj2008 commented on May 22, 2024

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.

WhiteWolf82 avatar WhiteWolf82 commented on May 22, 2024

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.

WhiteWolf82 avatar WhiteWolf82 commented on May 22, 2024

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.

miandai avatar miandai commented on May 22, 2024

I encountered the same problem and still haven't solved it

from openagents.

samantha0-ops avatar samantha0-ops commented on May 22, 2024

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.

caizhuoyue77 avatar caizhuoyue77 commented on May 22, 2024

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.

BlankCheng avatar BlankCheng commented on May 22, 2024

Btw, it seems to be a known issue for node 21.0, please refer to this issue apache/echarts#19233

from openagents.

BlankCheng avatar BlankCheng commented on May 22, 2024

Worked with node: 18.7.0 npm: 8.15.0 version

This solution worked for the echarts issue.

from openagents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.