Skip to content

Build : error TS7056: The inferred type of this node exceeds the maximum length #72

@messenjer

Description

@messenjer

Hello

Hi, I get this error when I try to build the library, do you get it too?

pnpm run build

> sortablejs-vue3@1.2.7 build sortablejs-vue3
> vite build && vue-tsc --emitDeclarationOnly --project tsconfig.dist.json && mv dist/lib dist/types && rm -rf dist/favicon.ico

vite v4.0.4 building for production...
✓ 4 modules transformed.
dist/sortablejs-vue3.es.js  3.53 kB │ gzip: 1.16 kB
dist/sortablejs-vue3.umd.js  2.00 kB │ gzip: 0.99 kB
src/components/Sortable.vue:6:1 - error TS7056: The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.

  6 type SortableOptionsProp = Omit<
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7   SortableOptions | AutoScrollOptions,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
134 });
    ~~~
135 </script>

Found 1 error in src/components/Sortable.vue:6

Regards

Mathieu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions