Error generated when generating ts file #328
liuxuan19980713
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Module '"vue"' has no exported member 'ref'
code:
import { ref } from 'vue'
export function useDialog(initVisible = false) {
const visible = ref(initVisible)
}
{
input: resolvePath("./index.ts"),
output: {
file: './dist/index.d.ts',
},
plugins: [
dts(), // 使用 rollup-plugin-dts 生成类型声明文件
],
},
Beta Was this translation helpful? Give feedback.
All reactions