babel-plugin-component icon indicating copy to clipboard operation
babel-plugin-component copied to clipboard

path.hub is undefined

Open nodew opened this issue 8 years ago • 2 comments

In src/core.js, you do const { file } = path.hub, in my situation, the path.hub may be undefined, so that webpack throw errors. I didn't find any document about what the keys of path stands for, such as hub, data and so on. I'm trying to find out the reason and need help.

nodew avatar Mar 23 '17 15:03 nodew

+1

yangyi avatar May 02 '17 02:05 yangyi

The same.

Cannot read property 'file' of undefined

['component', [{ libraryName: 'element-ui', styleLibraryName: 'theme-default' }]]

yoyo837 avatar Oct 28 '17 15:10 yoyo837