-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Description
Version
3.0.0-beta.15
Reproduction link
https://jsfiddle.net/kasor/f8u93nyv/12/
Steps to reproduce
idem as issue #1370 (#1370)
but for non exported "MethodOptions"
Rollup build is reporting error :
[!] (plugin rpt2) Error: .../CInput.vue?vue&type=script&lang.ts(44,1): semantic error TS4082: Default export of the module has or is using private name 'MethodOptions'.
What is expected?
Something like the following works without errors:
import { defineComponent } from "vue";
import { string } from "vue-types";
import * as allFormMixins from './form-mixins'
const mixins = Object.values(allFormMixins)
export default defineComponent({
name: "HelloWorld",
props: {
msg: string()
},
mixins,
});
What is actually happening?
semantic error TS4082: Default export of the module has or is using private name 'MethodOptions'.
mixins is to provide a bunch of shared computed: methods from ./form-mixins.ts
this a previously JS project, converted in TS project with temporary @ts-nocheck in the script part.
MethodOptions is not exported, and apparently, the compiler is against exporting a private variable.