next.js icon indicating copy to clipboard operation
next.js copied to clipboard

@next/next/google-font-display ESLint: Cannot read properties of undefined (reading 'value')

Open adjsky opened this issue 3 years ago • 1 comments

Verify canary release

  • [X] I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System: Platform: linux Arch: x64 Version: #1 SMP PREEMPT_DYNAMIC Sat Oct 29 14:21:50 UTC 2022 Binaries: Node: 19.0.0 npm: 8.19.2 Yarn: 1.22.19 pnpm: 7.14.1 Relevant packages: next: 13.0.3-canary.0 eslint-config-next: 13.0.3-canary.0 react: 18.2.0 react-dom: 18.2.0

What browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

Describe the Bug

When running next build the following error is logged:

info - Linting and checking validity of types ...error - ESLint: Cannot read properties of undefined (reading 'value') Occurred while linting /home/adjsky/Programming/stuff/evil-cards/apps/client/src/pages/_document.tsx:8 Rule: "@next/next/google-font-display"

the line that fails check:

<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />

when specifying crossOrigin="anonymous" check doesn't fail

Expected Behavior

check doesn't fail

Link to reproduction

https://github.com/adjsky/next-eslint-google-font-display

To Reproduce

  1. clone reproduction repo
  2. install deps
  3. run next build

adjsky avatar Nov 07 '22 22:11 adjsky

I'd like to take this one!

mrkldshv avatar Nov 08 '22 10:11 mrkldshv

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

github-actions[bot] avatar Dec 10 '22 12:12 github-actions[bot]