naver / egjs-grid

A component that can arrange items according to the type of grids
https://naver.github.io/egjs-grid/
Other
275 stars 17 forks source link

svelte package does not work #82

Open isaacfink opened 1 year ago

isaacfink commented 1 year ago

Description

I am trying to implement a masonry layout using the svelte package but it doesn't align anything, it doesn't even modify the children

Steps to check or reproduce

<MasonryGrid column={4} columnSize={200} align={'end'}>
      {#each category.posters as card}
        <Card {card} />
      {/each}
    </MasonryGrid>
daybrush commented 1 year ago

@isaacfink

The reason is not ascertained. Are there any differences?

src/routes/about/about.svelte // See About Page

https://codesandbox.io/p/sandbox/compassionate-herschel-71x9n5

g-30 commented 8 months ago

@daybrush it doesn't work for me as well. Here's the error VS Code shows:

Screenshot

And here's what the console returns:

require() of ES Module ./node_modules/svelte/src/runtime/internal/index.js from ./node_modules/@egjs/svelte-grid/dist/grid.cjs.js not supported.