phpstorm 에서 svelte prettier 적용하고 Reformat File 할때 발생하는 에러 수정
PhpStorm에서 Svelte 코드의 Reformat File 시 발생하는 오류를 해결했습니다. 'Optimize imports' 옵션을 false로 설정하면 문제를 피할 수 있습니다.
GGAMI
import { View } from '@nativescript/core';
import { NativeViewElementNode } from 'svelte-native/dom';
let view: NativeViewElementNode<View>;
export async function animateOut() {
return view.nativeElement.animate({
opacity: 0,
duration: 300,
});
}
</script>
<gridlayout {...$$restProps} backgroundColor="white" bind:this={view}>
<label class="h-center v-center text-2xl font-bold">
<formattedString>
<span class="fas text-[#3A53FF]" text="" />
<span class="text-pink-400" text=" loading" />
</formattedString>
</label>
</gridlayout>