.js files are treated as ES modules when the module type is specified in Node. Check to see if your JSON file includes a type: module definition. 435 01 : 40. React - Uncaught ReferenceError: require is not defined; React - Uncaught ReferenceError: require is not defined If you are using the Node.js environment, you can use the JavaScript require() function by default. Thats it.