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

How to use it exactly #610

Closed
PlkMarudny opened this issue Apr 24, 2020 · 2 comments
Closed

How to use it exactly #610

PlkMarudny opened this issue Apr 24, 2020 · 2 comments

Comments

@PlkMarudny
Copy link

I am getting

ReferenceError: freeSolidSvgIcons is not defined

on the basic example. You rollup.config.js does not contain any 'externa' nor 'output' sections, what am I doing wrong?

@RobBrazier
Copy link
Owner

RobBrazier commented Apr 24, 2020

rollup.config.js doesn't have any outputs because svelte recommends not publishing compiled components. You import the raw component.

The build is to ensure that the component compiles and functions correctly.

Have you added @fortawesome/free-solid-svg-icons to your package.json?

Also, it sounds like you haven't declared freeSolidSvgIcons? The error sounds like that might be the case, can you double check

@PlkMarudny
Copy link
Author

Thank you, this helped indeed. Works now. But maybe would be beneficial to add this to the README.md?

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

No branches or pull requests

2 participants