I'm using NodeJs and ReactJs, with webpack config.
When I build my app, I have an error on navigator console :
Require is not defined
module.exports = require("jquery");
So I tried to import RequireJs, like this :
var requirejs = require('requirejs');
requirejs.config({
nodeRequire: require,
}),
requirejs (['jquery'])
But I have the same error.
Is there any way to solve the problem?