Html Webpack Plugin:
Error: Child compilation failed:
[eslint] Must use import to load ES Module: /home/forge/smarttrace-fe.stagelab .co.uk/node_modules/@eslint/eslintrc/universal.js
require() of ES modules is not supported.
require() of /home/forge/smarttrace-fe.stagelab.co.uk/node_modules/@eslint/esl intrc/universal.js from /home/forge/smarttrace-fe.stagelab.co.uk/node_modules/ eslint/lib/linter/linter.js is an ES module file as it is a .js file whose nea rest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename universal.js to end in .cjs, change the requiring code to use i mport(), or remove "type": "module" from /home/forge/smarttrace-fe.stagelab.co .uk/node_modules/@eslint/eslintrc/package.json.
- child-compiler.js:169
[smarttrace-fe.stagelab.co.uk]/[html-webpack-plugin]/lib/child-compiler.js:1 69:18
- Compiler.js:551 finalCallback
[smarttrace-fe.stagelab.co.uk]/[webpack]/lib/Compiler.js:551:5
- Compiler.js:577
[smarttrace-fe.stagelab.co.uk]/[webpack]/lib/Compiler.js:577:11
- Compiler.js:1196
[smarttrace-fe.stagelab.co.uk]/[webpack]/lib/Compiler.js:1196:17
- Hook.js:18 Hook.CALL_ASYNC_DELEGATE [as _callAsync]
[smarttrace-fe.stagelab.co.uk]/[tapable]/lib/Hook.js:18:14
- Compiler.js:1192
[smarttrace-fe.stagelab.co.uk]/[webpack]/lib/Compiler.js:1192:33
- Compilation.js:2787 finalCallback
[smarttrace-fe.stagelab.co.uk]/[webpack]/lib/Compilation.js:2787:11
- Compilation.js:3092
[smarttrace-fe.stagelab.co.uk]/[webpack]/lib/Compilation.js:3092:11