After using vue-cli@3 to
npm run build
The system showed an error message:
No module factory available for dependency type: CssDependency
I have extensively searched for related solutions, but they all pertain to Angular. I also attempted the following steps:
- rm -r node_modules
- rm package-lock.json
- npm i
Despite these efforts, the error persists. Can someone please help me resolve this issue?
Below are the specific details of the error encountered:
ERROR Error: No module factory available for dependency type: CssDependency
Error: No module factory available for dependency type: CssDependency
at addDependency (E:\Games\hitokoto\node_modules\webpack\lib\Compilation.js:800:12)
... (remaining stack trace omitted for brevity)
Furthermore, here is a snippet from my package.json file:
{
"name": "hitokoto",
"version": "0.1.0",
...
}