导入后一直报错:Cannot read property 'install' of undefined[bug]
不停安装和卸载后,发现:babel.config.js需加上:
"plugins": [
[
"import",
{
"libraryName": "ts-lib-testdddd",
"camel2DashComponentName": false,
"camel2UnderlineComponentName": false,
"style": (name) => {
const cssName = name.split('/')[2];
console.log(cssName)
return `ts-lib-testdddd/lib/style/${cssName}.css`
}
}
],
]