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.

https://github.com/visionmedia/debug/blob/master/debug.js#L119

which may throw

Uncaught TypeError: exports.useColors is not a function
    at createDebug (debug.js:119)
    at Object.<anonymous> (url.js:7)
    at Object.<anonymous> (url.js:47)
    at __webpack_require__ (bootstrap 6dcc159…:583)
    at fn (bootstrap 6dcc159…:107)
    at Object.<anonymous> (websocket.js:4)
    at Object.<anonymous> (websocket.js:98)
    at __webpack_require__ (bootstrap 6dcc159…:583)
    at fn (bootstrap 6dcc159…:107)
    at Object.<anonymous> (transport-list.js:5)

https://github.com/visionmedia/debug/commit/e58d54b46f6b446afd5262d67faea2308e952908#diff-9fd8b683aa0fd2f9b1cb7245c42c96efR125

I think that any pr submitted to this module should trigger automatic unit test run before merged in case of potential error.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
dickeylthcommented, Dec 18, 2016

@mmazzarolo I changed my webpack config from:

{
  plugins: [
    new webpack.ResolverPlugin([
      new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin(".bower.json", ["main"]),
      new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin("bower.json", ["main"])
    ])
  ]
}

to

{
  plugins: [
    new webpack.ResolverPlugin([
      new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin("package.json", ["browser", "main"]),
      new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin(".bower.json", ["main"]),
      new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin("bower.json", ["main"])
    ])
  ]
}

and everything worked again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

`useColor` bug · Issue #371 · debug-js/debug - GitHub
i shimmed the exports.useColors function locally and also had an error thrown complaining that exports.colors was not an array. when both of ...
Read more >
36013 - Use color to indicate severity in bug lists
I propose that color be used in bug lists to indicate the severity of a bug. This would make it a lot easier...
Read more >
useColorScheme - React Native
The useColorScheme React hook provides and subscribes to color scheme updates from the Appearance module. The return value indicates the ...
Read more >
Bug #171170 (sf1437477) “Use color picker to add colors to palet ...
Hello! Having the possibility to add colors to the palette by using the color picker could be very helpful. I think it could...
Read more >
The Best Paint Colors To Repel Bugs
Can different paint colors help to repel bugs and other pests this ... Various bugs use color to detect food, mates, or potential...
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