ElementUI / babel-plugin-component

Modular element-ui build plugin for babel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

path.hub is undefined

nodew opened this issue · 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.

+1

commented

The same.

Cannot read property 'file' of undefined

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