on-internet
← Community

Webpack, require is not a function

Stack Overflow ·

Getting an error when running my webpack-built React app - the error is as follows: webpack-internal:///1495:3 var crypto = require('crypto'); ^ TypeError: require is not a function at eval (webpack-internal:///1495:3:14) at Object.<anonymous> (/path/to/project/build/main.js:9739:1) at __webpack_require__ (/path/to/project/build/main.js:21:30) at eval (webpack-internal:///1494:1:20) at Object.<anonymous> (/path/to/project/build/main.js:9733:1) at __webpack_require__ (/path/to/project/build/main.js:21:30) at eval (webpack-internal:///692:8:18) at Object.<anonymous> (/path/to/project/build/main.

Comments

Sign in or sign up to comment and upvote.

No comments yet.