Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vanilla Svelte renders images as list instead of a grid #80

Open
MindSetFPS opened this issue Jan 22, 2023 · 2 comments
Open

Vanilla Svelte renders images as list instead of a grid #80

MindSetFPS opened this issue Jan 22, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@MindSetFPS
Copy link

Description

Images are rendered but as a list instead of a grid. Also, console gives some errors:

[HMR][Svelte] Unrecoverable HMR error in <App>: next update will trigger a full reload proxy.js:15:11
    logError http://localhost:5173/node_modules/svelte-hmr/runtime/proxy.js?v=1b726137:15
    Proxy<App> http://localhost:5173/node_modules/svelte-hmr/runtime/proxy.js?v=1b726137:380
    <anonymous> http://localhost:5173/src/main.js:4
Uncaught TypeError: options.props is undefined
    JustifiedGrid JustifiedGrid.js:11
    instance Grid.svelte:51
    run index.mjs:20
    mount_component index.mjs:1953
    flush index.mjs:1191
    init index.mjs:2048
    App App.svelte:426
    createProxiedComponent svelte-hooks.js:341
    ProxyComponent proxy.js:242
    Proxy<App> proxy.js:349
    <anonymous> main.js:4
Uncaught (in promise) TypeError: grid is undefined

Steps to check or reproduce

Using a clean svelte + vite project (no sveltekit)

1.- Create new svelte project with vite

npm create vite@latest

select vanilla svelte and javascript

2.- Replace App.svelte contents file with storybook example

Versions

Node: v18.12.1
Svelte: 3.54.0
egjs-grid: 1.11.2

@daybrush daybrush added the bug Something isn't working label Jan 27, 2023
@daybrush
Copy link
Member

@MindSetFPS

okay. I'll fix it soon.

@daybrush
Copy link
Member

daybrush commented Feb 3, 2023

@MindSetFPS

It is most likely a bug in vite itself.

Bug fixed, test with version 1.12.1-beta.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants