Closed salvatoreromeo closed 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">
Duplicate of #241
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: