Skip to content

Found ts declaration file but could not be resolved. #86

@colinbes

Description

@colinbes

I am using vscode 1.78.2 together with vue 3.2.47 and latest vite.

I installed latest sortablejs-vue3 (1.2.9) as per instructions and am seeing error below.

I do see node_modules/sortablejs-vue3/dist/src/components/Sortable.vue.d.ts and the referred to node_modules/sortablejs-vue3/dist/types/main.d.ts but do not understand the comment on his result could not be resolved when respecting package.json

Could not find a declaration file for module 'sortablejs-vue3'. '/Users/colinbester/SynologyDrive/vite/recipe-manager/node_modules/sortablejs-vue3/dist/sortablejs-vue3.es.js' implicitly has an 'any' type.
  There are types at '/Users/colinbester/SynologyDrive/vite/recipe-manager/node_modules/sortablejs-vue3/dist/types/main.d.ts', but this result could not be resolved when respecting package.json "exports". The 'sortablejs-vue3' library may need to update its package.json or typings.ts(7016)

My vite tsconfig.json is setup under compilerOptions to use moduleResolution: "bundler"

Assistance appreciated.

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