This morning I tried to generate a production build for my Vuejs project. I had run this command several time already, for the same project, without issues. But this morning I got the error:
No module factory available for dependency type: CssDependency
I am using vue/cli 5.11 and it's a Vuejs 3 project, and executing the command in a Windows Terminal window.
Same, when I was serving the project, suddenly is had this strange error:
There are multiple modules with names that only differ in casing.
Long story short, the solution was to open a windows terminal and run the exact same command. I love those kind of situation where everything is resolved easily.
As for the reason it happened: after searching on Stackoverflow and Github issues, it seems to be linked to windows' path case sensitivity and Webpack. I don't know why it happened suddenly.
EDIT 27th January: It seems like Windows Terminal's cd command is not case sensitive. What I think happened is that I probably switched to a directory using the wrong case.
Comments
Post a Comment