vue-draggable-next icon indicating copy to clipboard operation
vue-draggable-next copied to clipboard

error TS4082: Default export of the module has or is using private name 'OpenObject'.

Open melenaos opened this issue 10 months ago • 2 comments

I use the VueDraggableNext component in a .vue file and when I build the project with vue-tsc I get the following error:

src/views/ReportDesigner.vue:714:1 - error TS4082: Default export of the module has or is using private name 'OpenObject'.

714 export default defineComponent({
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
715   name: 'ReportDesigner',
    ~~~~~~~~~~~~~~~~~~~~~~~~~
...
888   },
    ~~~~
889 });
    ~~~

When I remove the component VueDraggableNext from the ReportDesigner, it build successfully.

As I saw in your repository, you are exporting VueDraggableNext but not OpenObject at the file VueDraggableNext.ts

Can you export the OpenObject as well as VueDraggableNext?

melenaos avatar Jan 21 '25 14:01 melenaos

@melenaos I'm not able to reproduce this issue. Please share the repo with the sample.

anish2690 avatar Feb 09 '25 21:02 anish2690

I've fixed it in this pr

huangmingfu avatar Mar 11 '25 03:03 huangmingfu