sveltejs / kit

web development, streamlined
https://svelte.dev/docs/kit
MIT License
18.78k stars 1.96k forks source link

TypeError: Failed to fetch dynamically imported module #11426

Open younghu-lee opened 11 months ago

younghu-lee commented 11 months ago

Describe the bug

Hi, I'm a korean developer. my english is very poor. Please understand.

We use sveltekit 2.0 to our admin web page. and deploying by docker, adapter-node. when deploying finished, the user is still using the old version facing that error. we use 'pollInterval' like below.

image

and in our +layout.svelte

image

but error has orruring.

when debugging, updated store not change.

We temporarily applied this in hooks.client.js :

image

we need your help.

Reproduction

Logs

No response

System Info

-- it's my local info, but version same 

System:
    OS: Windows 10 10.0.19043
    CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
    Memory: 3.82 GB / 15.83 GB
  Binaries:
    Node: 20.9.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.1.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1023.0), Chromium (120.0.2210.77)
    Internet Explorer: 11.0.19041.906
  npmPackages:
    @sveltejs/adapter-auto: ^3.0.0 => 3.0.0
    @sveltejs/adapter-node: ^2.0.0 => 2.0.0
    @sveltejs/kit: ^2.0.0 => 2.0.1
    @sveltejs/vite-plugin-svelte: ^3.0.0 => 3.0.1
    svelte: ^4.0.5 => 4.2.2
    vite: ^5.0.0 => 5.0.10

Severity

annoyance

Additional Information

I saw this page, 'https://github.com/sveltejs/kit/issues/9089' but comment is outdated.

frederichoule commented 8 months ago

Did you find a way to fully handle this?

younghu-lee commented 8 months ago

Did you find a way to fully handle this?

Hi. Yes. I find a way to fully handle this. You see this my reply.

my reply

and i remove immutable cash by using patch-package. but, sveltekit developer tell me, that way is page loading speed down. you remind this.

vecter commented 4 months ago

Did you find a way to fully handle this?

Hi. Yes. I find a way to fully handle this. You see this my reply.

my reply

and i remove immutable cash by using patch-package. but, sveltekit developer tell me, that way is page loading speed down. you remind this.

How did you use patch-package to remove the immutable cache? What does that mean?

eltigerchino commented 1 week ago

Please provide a minimal reproduction.