New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS2304: Cannot find name 'PropertyKey'. #6874
Comments
Because "lib": [
"es5",
"dom",
"dom.iterable",
"es2015"
] |
It works! Thanks Adding the following is sufficient:
|
I have the same issue. Error - typescript - node_modules@types\es6-collections\index.d.ts(22,4): error TS2687: All declarations of 'val |
Version
2.12.1
Environment
macOS 10.12.3
Reproduction link
https://github.com/tylerlong/react-antd-ts-test
Steps to reproduce
git clone https://github.com/tylerlong/react-antd-ts-test
yarn install
yarn build
What is expected?
It should build without problem
What is actually happening?
➜ ts-test git:(master) ✗ yarn build
yarn build v0.22.0
$ webpack
[at-loader] Using typescript@2.4.1 from typescript and "tsconfig.json" from /Users/tylerlong/src/react/ts-test/tsconfig.json.
[at-loader] Checking started in a separate process...
[at-loader] Checking finished with 2 errors
Hash: c0b8bc6cbb418f703794
Version: webpack 3.3.0
Time: 11342ms
Asset Size Chunks Chunk Names
bundle.js 3.67 MB 0 [emitted] [big] main
bundle.js.map 3.83 MB 0 [emitted] main
[28] (webpack)/buildin/global.js 509 bytes {0} [built]
[120] (webpack)/buildin/module.js 517 bytes {0} [built]
[396] ./src/index.tsx 334 bytes {0} [built]
[503] ./node_modules/moment/locale ^./.*$ 2.79 kB {0} [optional] [built]
[790] (webpack)/buildin/amd-options.js 82 bytes {0} [built]
909 hidden modules
ERROR in [at-loader] ./node_modules/antd/lib/table/Table.d.ts:109:27
TS2304: Cannot find name 'PropertyKey'.
ERROR in [at-loader] ./node_modules/antd/lib/table/Table.d.ts:112:33
TS2304: Cannot find name 'PropertyKey'.
error Command failed with exit code 2.
The demo project was created according to https://www.typescriptlang.org/docs/handbook/react-&-webpack.html
And I am having issue when trying to add antd to the project.
The text was updated successfully, but these errors were encountered: