Replies: 1 comment 1 reply
-
| 
         Needed to add to vite.config.js  | 
  
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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I have a private Svelte library (topo-editor) which uses .svelte.ts files.
When I install this library in another SvelteKit application, I get errors such as:
Unexpected token (1:12) [plugin vite-plugin-svelte-module:optimize-svelte]
It is the same whether the import is .svelte, .svelte.ts or .svelte.js.
Can you tell me how to fix.
Beta Was this translation helpful? Give feedback.
All reactions