-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Typescript can't compile success while using some Symbol attributes #20572
Comments
As the form noted, you need to provide a fully reproducible example. You need to provide more basic information. What is your |
@kitsonk Thanks for your reply {
"compilerOptions": {
"target": "es2015",
"module": "amd",
"jsx": "react",
"outDir": "./dist",
"moduleResolution": "node"
},
"compileOnSave": true,
"include": [
"./*"
]
} This is my {
"name": "test",
"version": "1.0.0",
"main": "index.js",
"dependencies": {
"typescript": "^2.6.2"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc index.ts"
},
"keywords": [],
"author": "",
"license": "ISC"
}
I added a command script in
But the code is in accordance with the ES6 specification, and it is reasonable that it shouldn't be wrong. |
Duplicate of #4538 |
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
TypeScript Version: 2.6.2
Code
Expected behavior:
JavaScript can run normally, and display the following content at the console
but typescript can't compile success. And many of the rest of the
Symbol
attributes are not normally identified. Such asSymbol.species
.The text was updated successfully, but these errors were encountered: