I can’t seem to stop getting this error, and I don’t know how to fix it. I have “chat-redm” at the beginning of the code and “vorp_rpchat” at the end, but I keep encountering this:
cfx> (node:27) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘html-webpack-plugin’
Require stack:
- /output/config/resources/[gameplay]/chat-redm/webpack.config.js
- /output/config/resources//[system]/[builders]/webpack/dummy.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object. (/output/config/resources/[gameplay]/chat-redm/webpack.config.js:1:27)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
(UseFXServer --trace-warnings ...
to show where the warning was created)
(node:27) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see Command-line API | Node.js v22.4.1 Documentation). (rejection id: 2)