Code Monkey home page Code Monkey logo

Comments (2)

BernardJiang avatar BernardJiang commented on July 20, 2024

I saw the same error message after the following error on Chrome on Ubuntu.

Uncaught TypeError: Cannot read property 'modules' of undefined
at Object. (commons.js:189496)
at Object. (commons.js:189687)
at webpack_require (commons.js:1333)
at fn (commons.js:751)
at Object.module.exports (commons.js:6290)
at webpack_require (commons.js:1333)
at fn (commons.js:751)
at Object. (commons.js:134888)
at webpack_require (commons.js:1333)
at fn (commons.js:751)

This error came from webpack dependency spdy-transport:

// Node.js 0.8, 0.10 and 0.12 support
Object.assign = (process.versions.modules >= 46 || !isNode)
? Object.assign // eslint-disable-next-line
: util._extend

It seems in case of web target (not node) for webpack.config.js, "process" has different definition from somewhere else, there is no "versions" in "process" that is supposed to be defined by Node. I found this error. But don't know how to fix it. I tried the suggestion to change target to "Node" from "web" in webpack.config.js. It can't compile. I guess that is not the correct way to use orbit-web here.

BTW, Orbit-electron works on my Ubuntu.

from orbit-web.

BernardJiang avatar BernardJiang commented on July 20, 2024

HAHA, I actually hacked it. After changing the order of the questioned line to the following, both errors are gone. I can pass the loading screen now. A proper fix is still needed.

orbit-web/node_modules/spdy-transport/lib/spdy-transport/utils.js

// Node.js 0.8, 0.10 and 0.12 support
Object.assign = ( !isNode || process.versions.modules >= 46)
? Object.assign // eslint-disable-next-line
: util._extend

from orbit-web.

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.