debug-js / debug

A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers
MIT License
11.16k stars 942 forks source link

in browser: Uncaught ReferenceError: process is not defined #900

Closed dcsan closed 2 years ago

dcsan commented 2 years ago

using with react18 whenever I do a hot restart I'll get this in the console. A full reload (ctrl-R) doesn't show the error

image

this is how I'm using the package

import debug from 'debug'
const clog = debug('SpaceGame')

localStorage.debug = '*'

additionally have All levels of console logging enabled.

dcsan commented 2 years ago

think this is something else related to switching from yarn to npm