typeerror: webpack.namedmodulesplugin is not a constructor

This happens because NamedModulesPlugin is an outdated option in V5. Try updating it to its new version:

NamedModulesPlugin → optimization.moduleIds: 'named'

Please refer to v5 migration guide for further details: https://webpack.js.org/migrate/5/#update-outdated-options


More Articles

How to start a new Github repo from an existing project

Assume that you have a project and you want to track it with Github. Navigate to the project folder,...

codezilla

codezilla

How to check for listening ports in Linux

Here is one of the most popular commands for troubleshooting network or specific application problem...

codezilla

codezilla

How to get octal file permissions from command line?

Sometimes we want to know the octal number representing the permission of a file like 755, 777, 664 ...

codezilla

codezilla