sveltejs / kit

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

Using svelte-create with Svelte 5 installs next version 1 #12108

Closed ciscoheat closed 1 month ago

ciscoheat commented 1 month ago

Describe the bug

When you create a new project with create-svelte, it installs 5.0.0-next.1, and not the next version of eslint-plugin-svelte either.

Reproduction

pnpm create svelte@latest and select the Svelte 5 option.

Logs

No response

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
    Memory: 45.73 GB / 63.93 GB
  Binaries:
    Node: 21.4.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.21 - ~\AppData\Local\pnpm\yarn.CMD
    npm: 9.3.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.15.5 - ~\AppData\Local\pnpm\pnpm.CMD
    bun: 1.0.32 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (123.0.2420.81)
    Internet Explorer: 11.0.19041.3636
  npmPackages:
    @sveltejs/adapter-auto: ^3.0.0 => 3.2.0
    @sveltejs/kit: ^2.0.0 => 2.5.5
    @sveltejs/vite-plugin-svelte: ^3.0.0 => 3.1.0
    svelte: 5.0.0-next.100 => 5.0.0-next.100
    vite: ^5.0.3 => 5.2.8

Severity

annoyance

Additional Information

The system info is after installing the latest versions with pnpm i -D svelte@next eslint-plugin-svelte@next

Conduitry commented 1 month ago

Judging by your system info you reported, it did not install next.1.

hjaber commented 1 month ago

confirm it is installing 5.0.0-next.1 install:

npm create svelte@latest my-app
# Skeleton
# Yes, using TypeScript syntax
# Add ESLint for code linting
# Add Prettier for code formatting
# Add Playwright for browser testing
# Try the Svelte 5 preview (unstable!)
    "devDependencies": {
        "@playwright/test": "^1.28.1",
        "@sveltejs/adapter-auto": "^3.0.0",
        "@sveltejs/kit": "^2.0.0",
        "@sveltejs/vite-plugin-svelte": "^3.0.0",
        "@types/eslint": "^8.56.7",
        "eslint": "^9.0.0",
        "eslint-config-prettier": "^9.1.0",
        "eslint-plugin-svelte": "^2.36.0",
        "globals": "^15.0.0",
        "prettier": "^3.1.1",
        "prettier-plugin-svelte": "^3.1.2",
        "svelte": "^5.0.0-next.1",
        "svelte-check": "^3.6.0",
        "tslib": "^2.4.1",
        "typescript": "^5.0.0",
        "typescript-eslint": "^7.5.0",
        "vite": "^5.0.3"
    }

With Svelte 5 on the horizon, I would favor this is not worth the time to fix

Conduitry commented 1 month ago

^5.0.0-next.1 is a semver range that will match the latest next.x version.

ciscoheat commented 1 month ago

True, the latest Svelte 5 next version is being added. Strange, as I've seen it added to package.json without the circumflex before. But the eslint-plugin-svelte could be set to its next version, if it's worth the time.