alphapeter / fa-svelte

Font Awesome 5 for svelte.js
MIT License
71 stars 3 forks source link

Example Code does not work #9

Closed psotos closed 4 years ago

psotos commented 4 years ago

The example that you have in your Readme file does not work for me. It looks like even the path you reference is invalid.

import { faCircle } from '@fortawesome/free-solid-svg-icons/faCircle' Doesnt match the Node_modules directory structure for your npm module. Can you please help to resolve?

thanks,

alphapeter commented 4 years ago

Hi! The documentation for installing the font awesome svgs is available at https://fontawesome.com/how-to-use/on-the-web/setup/using-package-managers

If using npm, you can run (for the free version)
npm install --save-dev @fortawesome/fontawesome-free

Do you think I should add a comment about installing font awesome in the readme.md?

alphapeter commented 4 years ago

I think there where several different font awesome packages when I wrote the documentation, hence I omitted that part.

alphapeter commented 4 years ago

You could also look in the example directories at package.json for which npm package I used for the examples.

Int that case I used @fortawesome/free-solid-svg-icons

psotos commented 4 years ago

NM I got it to work. I had missed the step where I needed to install your version of the font awesome solid icons.

psotos commented 4 years ago

I think there where several different font awesome packages when I wrote the documentation, hence I omitted that part.

I would love to see you update the package to make it more fully featured. It is a great start!