Skip to content

Could not find a declaration file for module sortablejs and dompurify #1166

Answered by ghiscoding
Raw-Gel asked this question in Q&A
Discussion options

You must be logged in to vote

I thought about it a bit more and it might be because these Types are not required (devDependencies in Slickgrid-Universal) and for that reason it might be why you're not resolving the types. I would guess that the 2 following would probably work

  1. add SortableJS and DOMPurify types to your devDependencies
npm install -D @types/sortablejs
npm install -D @types/dompurify
  1. modify your tsconfig.json to ignore types from external libs
// tsconfig.json or tsconfig.app.json
{
  "compilerOptions": {
    "skipLibCheck": true
  }
}

EDIT

I added @types/sortablejs as a dependency into Slickgrid-Universal so this error will never show up anymore. On the other hand, the @types/dompurify was not added…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghiscoding
Comment options

Answer selected by ghiscoding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants