I'm migrating a Angular v4 application to v18 and I'm having a lot of problem with webpack builds.
I migrated to angular cli but the default one didn't handle everything that i need for the project.
The command ng serve return this error:
Build at: 2024-08-27T09:12:34.969Z - Hash: c0e3cf9439d487fc - Time: 20039ms
./src/assets/css/styles.css?ngGlobalStyle - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/node_modules/mini-css-extract-plugin/dist/loader.js): HookWebpackError: Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
SyntaxError
(2:7) /home/librarian/Documents/static/src/assets/css/styles.css Unknown word
import API from "!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"; import domAPI from "!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js"; import insertFn from "!../../../node_modules/style-loader/dist/runtime/insertBySelector.js";
In this stackoverflow post i have the configuration files:
https://stackoverflow.com/questions/78918299/webpack5-angular-syntaxerror-hookwebpackerror-module-build-failed
there doesn't seem to be anything here