我已经准备好了一些东西,我可以使用这个npx命令(在PowerShell中运行)构建我的组件: &npx vue-cli-service build `
--target lib `应用程序中 当使用JS编写组件时,它工作得很好,但是当我尝试在TS中创建一个组件时,我得到了这个错误: file:7 Uncaught TypeError: Class extends value undefinedis not a constructor
如果我扩展了一个本地导出的类,它就能工作。constructor() {}
// do something但是当我从文件外部导入classA时,它就不工作了。不起作用的例子:
import { classA } from '../'; // I use index.ts file, so the ref