You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compile a react project which has import { Input, Menu, Segment } from "semantic-ui-react"
run it in the browser
Expected Result
No errors
Actual Result
debug.js:38Uncaught TypeError: _debug.enable is not a function
This is because when the debug.js file runs require("debug") it import itself, not the node debug module. I recommend renaming it to 'startDebug.js' to avoid recursive imports when relative importing is enabled and prioritied.
Version
0.61.7
Testcase
N/A
The text was updated successfully, but these errors were encountered:
The debug module defines the browser field in their package.json:
{
"browser": "./browser.js",
}
This is used by webpack to automatically require the browser build making the resolve config unnecessary. We also use debug both in dev and production mode on the doc site without no errors.
This leads me to believe it is something unique to the setup where you're seeing this. What version of Webpack are you using and how are you setting your environment?
Steps
Expected Result
No errors
Actual Result
This is because when the debug.js file runs
require("debug")
it import itself, not the node debug module. I recommend renaming it to 'startDebug.js' to avoid recursive imports when relative importing is enabled and prioritied.Version
0.61.7
Testcase
N/A
The text was updated successfully, but these errors were encountered: