hperrin / svelte-material-ui

Svelte Material UI Components
https://sveltematerialui.com/
Apache License 2.0
3.32k stars 285 forks source link

Console show's error 404 for the bare.css file! #382

Open gtvmster opened 2 years ago

gtvmster commented 2 years ago

Hi, I'm new at web programming and start to learn Svelte for the past 3 weeks. Now I'm trying to use SMUI in my project, but the browser console and the run dev in the cmd are both showing the 404 error for the bare.css file. I've already try to use the file from the svelte-material-ui package and also try to use the bare.css in the individual packages (top-app-bar and list in this case), I've also try to use the CDN option that the website gives but in all this options the error is always the same. I'll let some print's...

To Reproduce Steps to reproduce the behavior:

  1. npm install --save-dev @smui/list or npm install --save-dev @smui/top-app-bar or npm install --save svelte-material-ui

  2. On the component page... or

  3. try to render the page on the browser. Open the console there's the 404 error....

  4. He also show up in the cmd if you use the npm run dev...

Captura de Tela (178) Captura de Tela (175) Captura de Tela (176) Captura de Tela (177)

ccosmincc commented 2 years ago

If you are fine with using it from CDN, you can try this URL: https://cdn.jsdelivr.net/npm/svelte-material-ui@6.0.0-beta.11/bare.min.css . The one which you used (which is the one found in the documentation as well) points to version 6.0.0 (svelte-material-ui@6.0.0), but version 6.0.0 is not released yet, so you just need to replace that part of the URL with an existing version (e.g. svelte-material-ui@6.0.0-beta.11 - the latest one at the time of writing this comment)