I have checked this question regarding the difference between importing with/without curly braces.
In my case, I have a class:
class PathResolver extends Component {
//content
}
export default connect()(PathResolver);
If I use
import { PathResolver } from '/path';
rather than
import PathResolver from '/path';
It will complain: Attempted import error: 'PathResolver' is not exported from '/path'.
These two import statements should be the same when the class name is "PathResolver", but it seems that the importing statement with curly braces cannot find the connected "PathResolver", why?