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
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 />
fromnext/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-element8 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 />
fromnext/link
instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages @next/next/no-html-link-for-pages8 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 />
fromnext/link
instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages @next/next/no-html-link-for-pages8 2.156 14:13 Error: Do not use an
<a>
element to navigate to/about/
. Use<Link />
fromnext/link
instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages @next/next/no-html-link-for-pages8 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