tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
485 stars 38 forks source link

Wrong error when exporting with context=module in a svelte component #287

Closed salvatoreromeo closed 2 years ago

salvatoreromeo commented 2 years ago

If you use a double script tag inside a svelte component, when you import something from the script[contex=module], webstorm says there's an error:

 import JsonViewer, { JsonViewerEvent } from './json-viewer/json-viewer.svelte';
//                                          ^  error here: Cannot resolve symbol 'JsonViewerEvent'
<script lang="ts" context="module">
  export interface JsonViewerEvent {
    expanded: boolean;
  }
</script>

<script lang="ts">
tomblachut commented 2 years ago

Duplicate of #241