-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Go to define and find reference functions can not work well on java-script. #28684
Comments
@gzx-miller Please provide more details like sample code, any errors from the output pane for typescript, any errors in console etc. |
@gzx-miller Does the Go to Definition and Find references work in smaller javascript files and just not in bigger files? Or they don't work in any javascript file? |
@ramya-rao-a I find this problem have no relation with file size. I'm write the react java-script code. find this problem. but go to define can work well in ts code. |
@ramya-rao-a There are more then 85% code oject or function can not go to define. When this problem happen, have a tip"未找到"xxxx"的任何定义", I used china version, so I have no english version tip. |
@gzx-miller Please put together a minimal code sample that shows this problem so that we can investigate |
@mjbvz I write a demo java-script code based react, please try goto on "this.keyUP" var Text = React.createClass({
getInitialState: function() {
return {name: "react"};
},
keyUp: function(e){
this.setState({name: e.target.value});
console.log(this.state.name);
},
render: function() {
return `(`
<div className="a">hello wrold{this.state.name}show me
<input onKeyUp={this.keyUp} />
</div>
);
}
});
ReactDOM.render(
<Text></Text>,
document.getElementById('well')
); |
@mjbvz if you can not reproduce this problem by this code, I can send email to you, please send your email address to my email address. |
@ramya-rao-a This problem have no relation with file size. |
@gzx-miller Thanks for the code You are running into this TypeScript limitation: microsoft/TypeScript#16184 . TypeScript powers our JavaScript language features and it currently does understand what Closing as upstream |
Sounds this issue is about the scenario that if you write React without ES6. When we create a React class by calling |
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: