title attribute cannot recognize typescript type
#43
Replies: 3 comments
-
|
By the way, when I set the title property, it works fine. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Workaround: |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Fixed in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
In my case, I try to use
titleattribute.I will get type error
And replact to string
How do I fix the issue in my Typescript code ?
The tsconfig file
{ "compilerOptions": { /* Base Options: */ "esModuleInterop": true, "skipLibCheck": true, "target": "es2022", "allowJs": true, "resolveJsonModule": true, "moduleDetection": "force", "isolatedModules": true, /* Strictness */ "strict": true, "noUncheckedIndexedAccess": true, "checkJs": true, /* Bundled projects */ "lib": ["dom", "dom.iterable", "ES2022"], "noEmit": true, "module": "ESNext", "moduleResolution": "Bundler", "jsx": "preserve", "plugins": [{ "name": "next" }], "incremental": true, /* Path Aliases */ "baseUrl": ".", "paths": { "~/*": ["./src/*"] } }, "include": [ ".eslintrc.cjs", "next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.js", ".next/types/**/*.ts" ], "exclude": ["node_modules"] }Beta Was this translation helpful? Give feedback.
All reactions