-
| 
         When I try to use a library from  
 Any ideas how I can fix this? I just updated to the latest stuff:  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            Glench
          
      
      
        Feb 20, 2023 
      
    
    Replies: 1 comment
-
| 
         Looks like this was because I was using   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        Glench
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Looks like this was because I was using
import {dev} from '$app/environment'. I switched toimport {DEV} from 'esm-env'((link)[https://github.com/benmccann/esm-env])) and it worked.