tsconfig.jsonを
{ "compilerOptions": { "module": "CommonJS", "target": "ESNext", "noImplicitAny": true, "rootDirs": ["."], "moduleResolution": "Node", "sourceMap": true, "esModuleInterop": true, "jsx": "react", "allowJs": true }, "include": ["./**/*.tsx"], "exclude": ["*node_modules/"] }
した上で
yarn ts
を走らせると
一部省略 node_modules/@types/react-dom/node_modules/@types/react/index.d.ts:2966:13 - error TS2717: Subsequent property declarations must have the same type. Property 'time' must be of type 'DetailedHTMLProps<TimeHTMLAttributes<HTMLElement>, HTMLElement>', but here has type 'DetailedHTMLProps<TimeHTMLAttributes<HTMLElement>, HTMLElement>'. 2966 time: React.DetailedHTMLProps<React.TimeHTMLAttributes<HTMLElement>, HTMLElement>; ~~~~ node_modules/@types/react/index.d.ts:2970:13 2970 time: React.DetailedHTMLProps<React.TimeHTMLAttributes<HTMLElement>, HTMLElement>; ~~~~ 'time' was also declared here. node_modules/@types/react-dom/node_modules/@types/react/index.d.ts:2967:13 - error TS2717: Subsequent property declarations must have the same type. Property 'title' must be of type 'DetailedHTMLProps<HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>', but here has type 'DetailedHTMLProps<HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>'. 2967 title: React.DetailedHTMLProps<React.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>; ~~~~~ node_modules/@types/react/index.d.ts:2971:13 一部省略
となります。nodeをignoreしているつもりなのですが、認識が違っていますでしょうか?
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/12/11 00:13
2019/12/11 00:15
2019/12/11 02:01
2019/12/11 06:44