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.

Cant require(embed-js) in Node

See original GitHub issue

var EmbedJS = require(‘embed-js’);

Gives error

TypeError: Cannot read property 'fetch' of undefined
    at /xxx/node_modules/embed-js/src/embed.js:916:15
    at /xxx/node_modules/embed-js/src/embed.js:1299:7

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
ritz078commented, Jan 25, 2017

yes. for that i will also have to separate code that handles interactions like click, load etc. But that should be surely doable.

0reactions
ritz078commented, Aug 14, 2017

isomorphic support available in v5 beta.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to embed node.js? · Issue #818 · nodejs/help - GitHub
The idea is that the software should expose an api to node and will let the user take it from there from an...
Read more >
Why I can't use 'require' built in module in node?
Just remove type: "module" from package.js and you should be able to use require() or alternatively you can set it to type: "commonjs"....
Read more >
jsdom - npm
jsdom is a pure-JavaScript implementation of many web standards, notably the WHATWG DOM and HTML Standards, for use with Node.js.
Read more >
Using import and require in the same file - Node JS - YouTube
Found solution here: https://www.kindacode.com/article/ node - js -how-to- use -import-and- require -in-the-same-file/
Read more >
import - JavaScript - MDN Web Docs - Mozilla
In order to use the import declaration in a source file, ... In Node, extension-less imports often refer to packages in node_modules ....
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