2.12.1
๋งฅOS 10.12.3
https://github.com/tylerlong/react-antd-ts-test
์์ ํด๋ก https://github.com/tylerlong/react-antd-ts-test
์์ฌ ์ค์น
์์ฌ ๋น๋
๋ฌธ์ ์์ด ๋น๋๋์ด์ผ ํฉ๋๋ค.
โ ts-test git:(๋ง์คํฐ) โ ์ ๋น๋
์์ฌ ๋น๋ v0.22.0
$ ์นํฉ
[at-loader] typescript ์ [email protected] ๋ฐ /Users/tylerlong/src/react/ts-test/tsconfig.json์ "tsconfig.json" ์ฌ์ฉ.
[at-loader] ๋ณ๋์ ํ๋ก์ธ์ค์์ ๊ฒ์ฌ ์์...
[at-loader] 2๊ฐ์ ์ค๋ฅ๋ก ํ์ธ์ด ์๋ฃ๋์์ต๋๋ค.
ํด์: c0b8bc6cbb418f703794
๋ฒ์ : ์นํฉ 3.3.0
์๊ฐ: 11342ms
์์ฐ ํฌ๊ธฐ ์ฒญํฌ ์ฒญํฌ ์ด๋ฆ
bundle.js 3.67 MB 0 [๋ฐฉ์ถ๋จ] [ํฐ] ๊ธฐ๋ณธ
bundle.js.map 3.83MB 0 [๋ฐฉ์ถ๋จ] ๊ธฐ๋ณธ
[28] (webpack)/buildin/global.js 509๋ฐ์ดํธ {0} [๋น๋๋จ]
[120] (webpack)/buildin/module.js 517๋ฐ์ดํธ {0} [๋น๋๋จ]
[396] ./src/index.tsx 334๋ฐ์ดํธ {0} [๋น๋๋จ]
[503] ./node_modules/moment/locale ^.\/.*$ 2.79kB {0} [์ ํ ์ฌํญ] [๋น๋๋จ]
[790] (webpack)/buildin/amd-options.js 82๋ฐ์ดํธ {0} [๋น๋๋จ]
909 ์จ๊ฒจ์ง ๋ชจ๋
[at-loader] ./node_modules/antd/lib/table/Table.d.ts:109:27 ์ค๋ฅ
TS2304: 'PropertyKey' ์ด๋ฆ์ ์ฐพ์ ์ ์์ต๋๋ค.
[at-loader] ./node_modules/antd/lib/table/Table.d.ts:112:33 ์ค๋ฅ
TS2304: 'PropertyKey' ์ด๋ฆ์ ์ฐพ์ ์ ์์ต๋๋ค.
์ค๋ฅ ๋ช
๋ น์ด ์ข
๋ฃ ์ฝ๋ 2๋ก ์คํจํ์ต๋๋ค.
๋ฐ๋ชจ ํ๋ก์ ํธ๋ https://www.typescriptlang.org/docs/handbook/react-&-webpack.html ์ ๋ฐ๋ผ ์์ฑ๋์์ต๋๋ค.
๊ทธ๋ฆฌ๊ณ ํ๋ก์ ํธ์ antd๋ฅผ ์ถ๊ฐํ๋ ค๊ณ ํ ๋ ๋ฌธ์ ๊ฐ ์์ต๋๋ค.
๋๋ฌธ์ PropertyKey
์ es2015
๋น์ ์ด ํฌํจ๋์ด์ผํ๋ฏ๋ก, ๋์๊ด es2015
์ถ๊ฐ, ํธ์ง์๋ฅผ lib
์์ ์ต์
์ tsconfig.json
.
"lib": [
"es5",
"dom",
"dom.iterable",
"es2015"
]
ํจ๊ณผ๊ฐ์๋ค! ๊ฐ์ฌ ํด์
๋ค์์ ์ถ๊ฐํ๋ฉด ์ถฉ๋ถํฉ๋๋ค.
"lib": [
"dom",
"es2015"
],
๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค.
๋ฒ์ 2.13.0
์ถ๊ฐํ ํ:
"lib": [
"dom",
"es2015"
],
๋ง์ ์ค๋ฅ๊ฐ ์์ต๋๋ค.
์ค๋ฅ - typescript - node_modules\@types\es6-collections\index.d.ts(22,4): ์ค๋ฅ TS2687: 'val'์ ๋ชจ๋ ์ ์ธ
ue'๋ ๋์ผํ ์์์ด๋ฅผ ๊ฐ์ ธ์ผ ํฉ๋๋ค.
[10:20:42] ์ค๋ฅ - typescript - node_modules\@types\es6-collections\index.d.ts(45,4): ์ค๋ฅ TS2687: 'siz'์ ๋ชจ๋ ์ ์ธ
e'๋ ๋์ผํ ์์์ด๋ฅผ ๊ฐ์ ธ์ผ ํฉ๋๋ค.
[10:20:42] ์ค๋ฅ - typescript - node_modules\@types\es6-collections\index.d.ts(51,4): ์ค๋ฅ TS2687: 'pro'์ ๋ชจ๋ ์ ์ธ
totype'์ ์์ ์๊ฐ ๋์ผํด์ผ ํฉ๋๋ค.
[10:20:42] ์ค๋ฅ - typescript - node_modules\@types\es6-collections\index.d.ts(65,4): ์ค๋ฅ TS2687: 'siz์ ๋ชจ๋ ์ ์ธ
e'๋ ๋์ผํ ์์์ด๋ฅผ ๊ฐ์ ธ์ผ ํฉ๋๋ค.
[10:20:42] ์ค๋ฅ - typescript - node_modules\@types\es6-collections\index.d.ts(71,4): ์ค๋ฅ TS2687: 'pro'์ ๋ชจ๋ ์ ์ธ
totype'์ ์์ ์๊ฐ ๋์ผํด์ผ ํฉ๋๋ค.
[10:20:42] ์ค๋ฅ - typescript - node_modules\@types\es6-collections\index.d.ts(76,10): ์ค๋ฅ TS2428: 'We
akMap'์ ๋์ผํ ์ ํ ๋งค๊ฐ๋ณ์๋ฅผ ๊ฐ์ ธ์ผ ํฉ๋๋ค.
[10:20:42] ์ค๋ฅ - typescript - node_modules\@types\es6-collections\index.d.ts(85,26): ์ค๋ฅ TS2344: ์ ํ 'K'๊ฐ ์ถฉ์กฑ๋์ง ์์
์ ์ฝ ์กฐ๊ฑด '๊ฐ์ฒด'๋ฅผ ์ง์ ํฉ๋๋ค.
[10:20:42] ์ค๋ฅ - typescript - node_modules\@types\es6-collections\index.d.ts(86,55): ์ค๋ฅ TS2344: ์ ํ 'K'๊ฐ ๋ง์กฑํ์ง ์์
์ ์ฝ ์กฐ๊ฑด '๊ฐ์ฒด'๋ฅผ ์ง์ ํฉ๋๋ค.
[10:20:42] ์ค๋ฅ - typescript - node_modules\@types\es6-collections\index.d.ts(87,4): ์ค๋ฅ TS2403: ํ์ ๋ณ์ decl
arations๋ ๊ฐ์ ์ ํ์ด์ด์ผ ํฉ๋๋ค. ๋ณ์ 'prototype'์ 'WeakMap ์ ํ์ด์ด์ผ ํฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋๋ฌธ์
PropertyKey
์es2015
๋น์ ์ด ํฌํจ๋์ด์ผํ๋ฏ๋ก, ๋์๊ดes2015
์ถ๊ฐ, ํธ์ง์๋ฅผlib
์์ ์ต์ ์tsconfig.json
.