I am currently in the process of updating my Angular project from version 6 to version 8.
However, I encountered an error message in the console:
ERROR: The loader "foo/node_modules/@swimlane/ngx-datatable/release/components/datatable.component.css" did not return a string.
Upon investigating, I found an issue that was closed in an earlier version than the one I am using. Therefore, I opened a new issue instead. My current version is "@swimlane/ngx-datatable": "^15.0.2".
I am running the project with Ahead-of-Time (AOT) compilation:
ng serve --aot --proxy-config proxy.conf.js
This is a snippet of my package.json file:
"dependencies": {
// Dependencies here
},
"devDependencies": {
// Dev dependencies here
}
Here is a part of my angular.json configuration as well:
// Configuration details here
In an attempt to resolve the issue, I also tried customizing the webpack configuration with the specified rules, but unfortunately, it did not solve the problem.
How can I ensure that the datatable.component.css file loads correctly?