Skip to content
New issue

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

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

Already on GitHub? # to your account

svelte-spa-chink doesn't work on REPL #3

Open
frederikhors opened this issue Apr 10, 2020 · 3 comments
Open

svelte-spa-chink doesn't work on REPL #3

frederikhors opened this issue Apr 10, 2020 · 3 comments

Comments

@frederikhors
Copy link

svelte-spa-chink doesn't work on REPL: https://svelte.dev/repl/f270c24af04f4e6ebba1259f1008681a?version=3.20.1

@hmmhmmhm
Copy link
Owner

For now, the svelte-spa-router is impossible to test at Svelte REPL.
(There seems to be a problem calling up the umd bundle.)

This issue appears to be related to the latest svelte-spa-router. ( ItalyPaleAle/svelte-spa-router#90 )
I have already checked the issue, but I haven't improved it in the latest version of the distribution.
The way i apply it now is not the perfect solution, but I'll fix it for now.

hmmhmmhm added a commit that referenced this issue Apr 12, 2020
@hmmhmmhm
Copy link
Owner

I published the new version of svelte-spa-chunk@2.0.0 to npm.
If there is an issue, I would appreciate it if you could share
the example code template with a separate repo or zip file instead of REPL.

@BogdanDarius
Copy link

BogdanDarius commented Jun 21, 2020

@hmmhmmhm
I'm not 100% sure if this is related but I get ChunkGenerator is not a function error.
I used a simple code:

import { ChunkGenerator } from "svelte-spa-chunk";
import ChunkComponent from "svelte-spa-chunk/Chunk.svelte";

const Chunk = ChunkGenerator(ChunkComponent);

export default {
    "/": Chunk(() => import("routes/Home.svelte")),
}

Same error seems to show in the REPL by @frederikhors :

'ChunkGenerator' is not exported by https://unpkg.com/svelte-spa-chunk@2.0.0/dist/index.js

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants