Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
faDiscord,
faGithub,
faGitlab,
faTwitter,
faXTwitter,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check FontAwesome version from package files
if [ -f "package.json" ]; then
  echo "=== package.json ==="
  grep -A 2 "@fortawesome/free-brands-svg-icons" package.json
fi

if [ -f "package-lock.json" ]; then
  echo -e "\n=== package-lock.json ==="
  grep -A 5 '"@fortawesome/free-brands-svg-icons"' package-lock.json | head -20
fi

# Also check node_modules if it exists
if [ -d "node_modules/@fortawesome/free-brands-svg-icons" ]; then
  echo -e "\n=== Installed version ==="
  cat node_modules/@fortawesome/free-brands-svg-icons/package.json 2>/dev/null | grep '"version"' || echo "Could not read package.json"
fi

Repository: AOSSIE-Org/website

Length of output: 566


Update FontAwesome to 6.4.2 or later to support faXTwitter.

The faXTwitter icon is not available in FontAwesome 6.2.1 (released January 2023, before the X rebrand in July 2023). It was introduced in FontAwesome 6.4.2. Importing this icon will cause a runtime error. Either upgrade @fortawesome/free-brands-svg-icons to 6.4.2 or later, or revert to using faTwitter.

🤖 Prompt for AI Agents
In src/pages/index.jsx around line 13, importing faXTwitter will fail on
projects using @fortawesome/free-brands-svg-icons v6.2.1 because that icon was
added in v6.4.2; fix by either (A) bump @fortawesome/free-brands-svg-icons to
6.4.2 or later in package.json, run your package manager to update lockfiles and
rebuild, or (B) revert the import to faTwitter (and update any usages) if you
cannot upgrade.

} from '@fortawesome/free-brands-svg-icons'
import { CardEffect } from '@/components/CardEffect'
import { Banner } from '@/components/Banner'
Expand Down Expand Up @@ -87,13 +87,14 @@ export default function Home() {
>
<FontAwesomeIcon icon={faDiscord} size="2xl" />
</Link>
<Link
aria-label="Follow on Twitter"
className="text-zinc-500 transition hover:text-[#00843D] dark:text-zinc-400 dark:hover:text-yellow-400"
href="https://twitter.com/aossie_org"
>
<FontAwesomeIcon icon={faTwitter} size="2xl" />
</Link>

<Link
aria-label="Follow on X"
className="text-zinc-500 transition hover:text-[#00843D] dark:text-zinc-400 dark:hover:text-yellow-400"
href="https://x.com/aossie_org"
>
<FontAwesomeIcon icon={faXTwitter} size="2xl" />
</Link>
</div>
<div className="mt-12 mx-4 md:mx-0 md:mt-8 text-left ">
<Link href="/about" className="group relative inline-block text-lg">
Expand Down