-
Notifications
You must be signed in to change notification settings - Fork 6
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
Can't get suggestion from an imported class (only from inside the same js file) #62
Comments
This issue related with #61 |
moving export default on the same line of the class component don't seems to solve :( |
@gino8080 |
ok so now I got it working i had to: the any PropTypes type was breaking all suggestions, static propTypes = {
fields: PropTypes.any.isRequired, //this breaked all
schema: PropTypes.node,
onFormChanged: PropTypes.func,
onSubmit: PropTypes.func,
debug: PropTypes.bool
}; setting type to object and now it's working static propTypes = {
fields: PropTypes.object.isRequired, //now it works
schema: PropTypes.node,
onFormChanged: PropTypes.func,
onSubmit: PropTypes.func,
debug: PropTypes.bool
}; hope this helps |
any update on this? thanks |
I can go to the component name with Press command+left click, but without any "any" it simply doesn't work for me, export on same line or not. |
I have the same issue as already described. Only working in the same file. |
Same issue here, any update on this? |
Same issue here: facebook/create-react-app#6969 |
🐛 bug report
To Reproduce
Steps to reproduce the behavior:
🤔 Expected Behavior
Vscode should suggest custom props
😯 Current Behavior
no suggestion from custom props added,
Only got suggestions INSIDE same .js file
Screenshots
no suggestion from custom props added

Only got suggestions INSIDE same .js file

Environment
Additional context
The text was updated successfully, but these errors were encountered: