Hi,
When using the Express npm module within a PCF control I'm getting the following warning and then a lot of errors:
WARNING in ./node_modules/express/lib/view.js 74:13-25
Critical dependency: the request of a dependency is an expression
@ ./node_modules/express/lib/application.js
@ ./node_modules/express/lib/express.js
@ ./node_modules/express/index.js
The advice I've found online is to use webpack-node-externals to exclude Express from being bundled. If I look at webpackConfig.js in my PCF control then node modules are already excluded. If I use webpack-node-externals anyway then this resolves the build errors but then my control doesn't load.
I'd be really grateful for any advice.
Thanks
Paul