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.

Upgrading to 3.1.6 causes Uncaught TypeError: getVideoId is not a function

See original GitHub issue

Upgrading caused this to start failing. Downgrading to 3.1.5 works fine.

const getVideoId = require('get-video-id');

export function parseVideoFromUrl(url) {
  const answer = getVideoId(url);

Also tried different other ways of importing and clearing the node_modules. They made no difference.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mikkoporicommented, Jan 28, 2021

Thank you for the fix, works now!

1reaction
jsg2021commented, Jan 18, 2021

The browser file could be converted to a UMD… and that could cover both commonjs and browser consumers… which would allow you to just have a main and module entry points… though, if you are using esm in the source, you may just want the module to point to src and only use a build step to generate the umd.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Handle JavaScript Uncaught TypeError: “x” is Not a ...
The Javascript TypeError: "x" is not a function occurs when calling a function on a value or object, which is not actually a...
Read more >
Uncaught TypeError: undefined is not a function on loading ...
I'm not concatenating it with anything... I'm loading it with jQuery.getScript(). So... Could this be what's causing my error? Or does that not...
Read more >
JavaScript: Uncaught TypeError: n is not a function
This error occurs if you try to execute a function that is not initialized or is not initialized correctly. This means that the...
Read more >
Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError - Some selector is not a function - jQuery is not a function - owlCarousel...
Read more >
How to fix "Uncaught TypeError: x is not a function" in JavaScript
JS Casts 01 - How to fix " Uncaught TypeError : x is not a function " in JavaScript.Visit https://javascriptcasts.com/episodes/01 for a summary ......
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