.extend is not a function
See original GitHub issueI’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:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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?
debug
should not be apeerDependency
, ever. So yes, if it’s listed as one, something is wrong 🙃