CdC-SI / eak-copilot

The official repository of the EAK-Copilot project as part of the Innovation Fellowship 2024.
https://cdc-si.github.io/eak-copilot/
GNU General Public License v3.0
3 stars 0 forks source link

use <Link> instead of <a> #206

Closed K-Schubert closed 3 weeks ago

K-Schubert commented 1 month ago

Description

Can't compile chatgpt-minimal (main branch) when running docker-compose build from eak-copilot repo (main branch).

Failed to compile.

8 2.156

8 2.156 ./src/components/HeaderBar/index.tsx

8 2.156 18:13 Warning: Using <img> could result in slower LCP and higher bandwidth. Consider using <Image /> from next/image to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element

8 2.156

8 2.156 ./src/components/TopHeader/Logo.tsx

8 2.156 6:7 Error: Do not use an <a> element to navigate to /. Use <Link /> from next/link instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages @next/next/no-html-link-for-pages

8 2.156

8 2.156 ./src/components/TopHeader/MetaNavigation.tsx

8 2.156 10:13 Error: Do not use an <a> element to navigate to /. Use <Link /> from next/link instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages @next/next/no-html-link-for-pages

8 2.156 14:13 Error: Do not use an <a> element to navigate to /about/. Use <Link /> from next/link instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages @next/next/no-html-link-for-pages

8 2.156

8 2.156 info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules


executor failed running [/bin/sh -c npm run build]: exit code: 1 ERROR: Service 'chatgpt-minimal' failed to build : Build failed

Fix

Replace \<a> tags by \<Link> tags in:

@Shi-Ho see bug/206-use-link-instead-of-a branch for fix