sveltejs / kit

web development, streamlined
https://kit.svelte.dev
MIT License
18.49k stars 1.89k forks source link

TypeError: loader is not a function #12703

Open allmors opened 5 days ago

allmors commented 5 days ago

Describe the bug

Create a simple route and the console reports an error image image image

Reproduction

Install the sveltekit project normally

Logs

No response

System Info

System:
    OS: Linux 5.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    CPU: (4) x64 AMD EPYC 7763 64-Core Processor
    Memory: 3.89 GB / 7.77 GB
    Container: Yes
    Shell: Unknown - /bin/sh
  Binaries:
    Node: 20.16.0 - /usr/bin/node
    npm: 10.8.1 - /usr/bin/npm
    pnpm: 9.6.0 - /usr/bin/pnpm
  npmPackages:
    @sveltejs/adapter-auto: ^3.0.0 => 3.2.5 
    @sveltejs/kit: ^2.0.0 => 2.5.28 
    @sveltejs/vite-plugin-svelte: ^3.0.0 => 3.1.2 
    svelte: ^4.2.7 => 4.2.19 
    vite: ^5.0.3 => 5.4.6

Severity

annoyance

Additional Information

No response

allmors commented 5 days ago

Why does sveltekit have so many errors? Compared with nextjs, it is really bad. sveltekit is really not suitable to use image image