Skip to content

Doesn't work on nodejs #535

@LLFourn

Description

@LLFourn
> require('matter-js').Engine.create()
TypeError: Cannot read property 'nodeType' of undefined
    at Object.Common.isElement (/root/server/node_modules/matter-js/build/matter.js:4449:23)
    at Object.Engine.create (/root/server/node_modules/matter-js/build/matter.js:4846:26)
    at repl:1:29
    at ContextifyScript.Script.runInThisContext (vm.js:50:33)
    at REPLServer.defaultEval (repl.js:240:29)
    at bound (domain.js:301:14)
    at REPLServer.runBound [as eval] (domain.js:314:12)
    at REPLServer.onLine (repl.js:441:10)
    at emitOne (events.js:120:20)
    at REPLServer.emit (events.js:210:7)
> 
root@7d42879a986e:~/server# cat node_modules/matter-js/package.json | grep version
    "gulp-tag-version": "^1.3.0",
  "version": "0.14.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions