Javascript / Default export: Quick definition shows only the import

Hello, 

I have a question concerning the "quick definition" feature.

I have a JavaScript project, which makes use of default exports ("export default XYZ"). If I import these modules somewhere and let me show the quick definition of the imported class (A preview window of the code of the class), it shows only the line with the import in the preview window. Whereas if I import a class which is exported with "export XYZ", the feature works as expected and shows the content of the class. It is a bit like the difference between "Jump to declaration" vs. "Jump to implementation".

Is there maybe an alternative "Quick definition", which resolves the imports and the export and shows the actual class?

Thank you in advance!

I have attached the two scenarios below:

Export default - not working:

 

"Normal" export - Works as expected

 

0

Known issue, tracked at https://youtrack.jetbrains.com/issue/WEB-20508.

as a workaround, try using Ctrl+click (Navigate | Declaration)

0

Oh, I didn't find this. Thank you for the link and the quick answer!

0

请先登录再写评论。