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.

.extend is not a function

See original GitHub issue

I’m trying to run the example and for some reason the extend field is missing. I’m using node v10.13.0. I did notice this works fine on my other machine with node v11.0.0.

root@Devon:/mnt/user/code/api# node
> const log = require('debug')('auth');
undefined
> const logSign = log.extend('sign');
TypeError: log.extend is not a function
> log
{ [Function: debug]
  namespace: 'auth',
  enabled: false,
  useColors: true,
  color: 3,
  inspectOpts: {} }

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
amccloudcommented, Jan 16, 2019

@OmgImAlexis ran into the same problem with the same fix. Seems to multiple variants of debug installed and depending on the order you can end up with this?

0reactions
Qix-commented, Apr 16, 2019

debug should not be a peerDependency, ever. So yes, if it’s listed as one, something is wrong 🙃

Read more comments on GitHub >

github_iconTop Results From Across the Web

extend is not a function - jquery - Stack Overflow
The problem is (as far as I can see from the source code), that the editor directly accesses the global $ (instead of...
Read more >
TypeError: $.extend is not a function #559 - CodeSeven/toastr
I have problem when testing my action (react). Here's the error: TypeError: $.extend is not a function at getOptions (node_modules/toastr/toastr ...
Read more >
extends - JavaScript - MDN Web Docs - Mozilla
The extends keyword can be used to subclass custom classes as well as built-in objects. Any constructor that can be called with new...
Read more >
jQuery UI TypeError: e.widget.extend is not a function - YouTube
jQuery : jQuery UI TypeError: e.widget. extend is not a function [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] jQuery ...
Read more >
Adding JS function works with .include(), but not .extend() - Odoo
I'm displaying a Bootstrap alert that automatically fades after some time, by creating a JS module that extends FormView and using the js_class...
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