webstorm cannot recognize ES6 export {default} from './Comp'
If I do
import Comp from './Comp';
export default Comp
the import will work
but if I do
export { default } from './Comp';
webstorm will say Comp is not found when I try to import it. however the code is actually correct and works
does anyone know the reason?
请先登录再写评论。
works fine for me.
please can you provide full code sample (initial default export in Comp.js, import of re-exported module in target file)?
Looks like it's my fault, since I use webpack to solve paths, I had to tell webstorm the resource root ... my bad