© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Bobby Hall Jr
Full Stack JavaScript Developer
You don’t need the useEffect in there if your not using it. If you are import it with component from react.
Ankur Singh
Software Developer
hey Bobby Hall Jr, because without that too I'm getting same error.
Ankur Singh I’m not very good with webpack, I usually use Create-react-app. Maybe change the “file name” path in the webpack config to “index.js” instead of “main.js”, good luck !