This repository was archived by the owner on Jun 1, 2025. It is now read-only.
  
  
  
  
Could not find a declaration file for module sortablejs and dompurify #1166
-
| 
         Hi I'm new in using the slick grid and I follow the HOWTO Step by Step procedure but when I start the project it return an error like this  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            ghiscoding
          
      
      
        Jun 14, 2023 
      
    
    Replies: 1 comment 1 reply
-
| 
         which version is that with? Can you try to clone the Angular-Slickgrid-Demos instead, it works correctly, also maybe check that you're using  // tsconfig.json and/or tsconfig.app.json
"typeRoots": [
      "node_modules/@types"
], | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
I thought about it a bit more and it might be because these Types are not required (
devDependenciesin 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 workdevDependenciestsconfig.jsonto ignore types from external libsEDIT
I added
@types/sortablejsas a dependency into Slickgrid-Universal so this error will never show up anymore. On the other hand, the@types/dompurifywas not added…