Skip to content

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

Open

Description

Activity

  1. hmmhmmhm commented on Apr 12, 2020

    @hmmhmmhm
    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.

  2. added a commit that references this issue on Apr 12, 2020
  3. hmmhmmhm commented on Apr 12, 2020

    @hmmhmmhm
    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.

  4. BogdanDarius commented on Jun 21, 2020

    @BogdanDarius

    @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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions