-
Notifications
You must be signed in to change notification settings - Fork 26
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
FaLayers & FaLayersText not working with sveltekit #239
Comments
I was just trying overlay in svelte/Vite , same problem with layers. Uncaught SyntaxError: The requested module '/node_modules/svelte-fa/src/fa.svelte' does not provide an export named 'FaLayers' (at ButtonManual.svelte? [sm]:2:14) however importing separately works: |
You're not importing it properly import Fa, { FaLayers, FaLayersText } from "svelte-fa"; Please read the README |
That still doesn't fix it for me: 3: import {faBoltLightning} from "@fortawesome/free-solid-svg-icons"; Error: 'FaLayersText' is not exported by node_modules/svelte-fa/src/fa.svelte, imported by src/components/lightning/LightningDashboard.svelte BTW, following this pattern does in fact work: import Fa from 'svelte-fa' |
Just to add onto this, trying to import with SvelteKit: import Fa, { FaLayers } from "svelte-fa"; does not work and throws the error:
Although, importing this way does work: import FaLayers from 'svelte-fa/src/fa-layers.svelte'; but then I get a typescript error:
|
Seems like the exports in |
Thanks for the info, would changing the |
Try v4.x which is built with SvelteKit. |
Hello!
Thank you for this project which makes using fontawesome a breeze! While importing and displaying free svg icons work great, I have had no success with FaLayers and FaLayersText as shown in the examples. Here is my code ..
Only the <Fa .. /> icons work and none of the <FaLayers .. /> icons with the layers are displayed. I'm only using the free fontawesome 6.2.0 icons
The text was updated successfully, but these errors were encountered: