Navigate to declaration doesn't work for wildcard imports in JSX

Go to declaration doesn't work for wildcard imports in JSX, but works fine for name or default imports. Go to declaration works fine outside of JSX, so it seems like it might be a bug. Example:

0
3 comments
Avatar
Permanently deleted user

Here are the contents of each file to reproduce this:

// foo.js
import React from 'react';
import * as baz from './baz';
import { quxComponent } from './qux';

function fooComponent() {
return (
<div>
<baz.bazComponent />
<quxComponent />
</div>
)
}
// baz.js
export const bazComponent = () => {};
// qux.js
export const quxComponent = () => {};
0

Thanks for report, logged as https://youtrack.jetbrains.com/issue/WEB-31421; please follow it for updates

0
Avatar
Permanently deleted user

Thanks!

0

Please sign in to leave a comment.