Error in loading nightmare while using webpack
问题 I am trying to run nightmare on the browser but I have learnt that it is not possible so I am trying to use webpack to bundle it and build it. When I am trying to build it with npx webpack --config webpack.config.js ,I am getting the following message : WARNING in ./node_modules/nightmare/lib/nightmare.js 332:20-336:2 Critical dependency: the request of a dependency is an expression @ ./src/index.js ERROR in ./node_modules/nightmare/lib/nightmare.js Module not found: Error: Can't resolve