question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't work on nodejs

See original GitHub issue
> 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"

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
AryanJ-NYCcommented, Jan 10, 2018

Thanks @liabru! Fix works for me.

1reaction
liabrucommented, Dec 7, 2017

Ugh I thought I’d solved that! Looks it needs to handle undefined.

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 reasons your Node.js apps are failing - IBM Developer
Common Node.js deployment problems · Uncaught exception or error event in JavaScript code · Excessive memory usage, which may result in an out-of-memory...
Read more >
Node js doesn't work in a terminal which node did not installed ...
Hi I tried to install node js from this link: https://github.com/nodejs/help/wiki/Installation So I installed it and it was successful but ...
Read more >
Node.js is not working? - Stack Overflow
It looks like your Node.js installation is not working. To test it, either type nodejs or nodejs --version and see if it provides...
Read more >
Top 10 Most Common Node.js Developer Mistakes - Toptal
However, like any other platform, Node.js is vulnerable to developer problems and issues. Some of these mistakes degrade performance, while others make Node.js...
Read more >
Troubleshoot your Node.js installation
Solution. Some common problems users encounter after installing the New Relic Node.js agent include: Not seeing data.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found