Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: No module factory available for dependency type: CssDependency #5154

Closed
FranciscoMendes10866 opened this issue Feb 6, 2020 · 2 comments

Comments

@FranciscoMendes10866
Copy link

FranciscoMendes10866 commented Feb 6, 2020

Version

4.1.0

Reproduction link

https://github.com/FranciscoMendes10866/Juliana-Project.git

Environment info

Environment Info:

  System:
    OS: Windows 10 10.0.18362
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  Binaries:
    Node: 12.14.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.19.2 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: 44.18362.449.0
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

npm install
npm run build

What is expected?

No errors

What is actually happening?

Error: No module factory available for dependency type: CssDependency


This week I started to learn Vue CLI and when I try to Build my Web App the following error appears in the Output of the vue ui:

Error: No module factory available for dependency type: CssDependency

I'm quite new to this and I don't quite understand why this happens, even because when I do the "run serve", the Web App works on localhost.

I spoke with a friend of mine at college and he told me to install a few dependencies, such as mini-css-extract-plugin, vue-style-loader and css-loader. But it did not work.

@haoqunjiang
Copy link
Member

I'm sorry but the link is broken.
According to feedbacks from other similar issues, it's likely due to the path casing. Please check your project path in the terminal.

@FranciscoMendes10866
Copy link
Author

FranciscoMendes10866 commented Feb 7, 2020

I'm sorry but the link is broken.
According to feedbacks from other similar issues, it's likely due to the path casing. Please check your project path in the terminal.

Thank you! It worked but now the problem is that when I run build cmd and I upload it on netlify, some text elements just disappeared.

here is the new link:
https://github.com/FranciscoMendes10866/vuewebapp.git

here is the web app on netlify:
https://goofy-brattain-6f9c47.netlify.com/#/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants