Not working on Svelte 5 #579
Replies: 3 comments
-
Hello, I will check asap today, thanks for reporting |
Beta Was this translation helpful? Give feedback.
-
@andre-brandao it took me some time but I've made for you a version with svelte 5 support 4.10.11-next: https://www.npmjs.com/package/@revolist/svelte-datagrid/v/4.10.11-next I've tested on the latest svelte builds and it's working fine. But be aware version 5 is just release candidate and not the latest version it could lead to multiple issues when used. |
Beta Was this translation helpful? Give feedback.
-
@m2a2x It does not work for me. This line: It compiles to
Resulting in: svelte file: <script lang="ts">
import type { PageData } from './$types';
import { RevoGrid, type ColumnRegular } from '@revolist/svelte-datagrid';
let { data }: { data: PageData } = $props();
import { onMount } from 'svelte';
const source = [
{
name: '1',
details: 'Item 1'
},
{
name: '2',
details: 'Item 2'
}
];
const columns: ColumnRegular[] = [
{
prop: 'name',
name: 'First'
},
{
prop: 'details',
name: 'Second'
}
];
let mounted = $state(false);
onMount(() => {
mounted = true;
});
</script>
{#if mounted}
<RevoGrid {source} {columns}></RevoGrid>
{/if} with
|
Beta Was this translation helpful? Give feedback.
-
Describe the issue
Svelte 5 internal pkg got depracated
To Reproduce
just npm install on a svelte 5 project, disabling ssr did not solve the issue!
Beta Was this translation helpful? Give feedback.
All reactions