Skip to content

Error during library creation #813

@x0k

Description

@x0k

Logs

&  pnpx sv create
Packages: +1
+
Progress: resolved 1, reused 0, downloaded 1, added 1, done

┌  Welcome to the Svelte CLI! (v0.10.2)
│
◇  Where would you like your project to be created?
│  package
│
◇  Which template would you like?
│  Svelte library
│
◇  Add type checking with TypeScript?
│  Yes, using TypeScript syntax
│
◇  What would you like to add to your project? (use arrow keys / space bar)
│  prettier, eslint, vitest, playwright, tailwindcss, devtools-json
│
◇  vitest: What do you want to use vitest for?
│  unit testing, component testing
│
◇  tailwindcss: Which plugins would you like to add?
│  none
│
◆  Project created
│
■  Error: Unable to process 'src/routes/+layout.svelte'. Reason: Failed to determine svelte version
│      at Object.file (file:///home/roman/.cache/pnpm/dlx/bb91ced9f175c6162bb1b69caa235e3593a52dcc12971190d18d5f1080773fae/19aacec033c-160e21/node_modules/.pnpm/sv@0.10.2/node_modules/sv/dist/install-DGNvl1vK.js:3111:35)
│      at Object.run (file:///home/roman/.cache/pnpm/dlx/bb91ced9f175c6162bb1b69caa235e3593a52dcc12971190d18d5f1080773fae/19aacec033c-160e21/node_modules/.pnpm/sv@0.10.2/node_modules/sv/dist/install-DGNvl1vK.js:2708:7)
│      at runAddon (file:///home/roman/.cache/pnpm/dlx/bb91ced9f175c6162bb1b69caa235e3593a52dcc12971190d18d5f1080773fae/19aacec033c-160e21/node_modules/.pnpm/sv@0.10.2/node_modules/sv/dist/install-DGNvl1vK.js:3153:14)
│      at applyAddons (file:///home/roman/.cache/pnpm/dlx/bb91ced9f175c6162bb1b69caa235e3593a52dcc12971190d18d5f1080773fae/19aacec033c-160e21/node_modules/.pnpm/sv@0.10.2/node_modules/sv/dist/install-DGNvl1vK.js:3058:59)
│      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
│      at async runAddonsApply (file:///home/roman/.cache/pnpm/dlx/bb91ced9f175c6162bb1b69caa235e3593a52dcc12971190d18d5f1080773fae/19aacec033c-160e21/node_modules/.pnpm/sv@0.10.2/node_modules/sv/dist/bin.js:993:59)
│      at async createProject (file:///home/roman/.cache/pnpm/dlx/bb91ced9f175c6162bb1b69caa235e3593a52dcc12971190d18d5f1080773fae/19aacec033c-160e21/node_modules/.pnpm/sv@0.10.2/node_modules/sv/dist/bin.js:1556:63)
│      at async file:///home/roman/.cache/pnpm/dlx/bb91ced9f175c6162bb1b69caa235e3593a52dcc12971190d18d5f1080773fae/19aacec033c-160e21/node_modules/.pnpm/sv@0.10.2/node_modules/sv/dist/bin.js:1418:57
│      at async runCommand (file:///home/roman/.cache/pnpm/dlx/bb91ced9f175c6162bb1b69caa235e3593a52dcc12971190d18d5f1080773fae/19aacec033c-160e21/node_modules/.pnpm/sv@0.10.2/node_modules/sv/dist/bin.js:502:3)
│
└  Operation failed.

File src/routes/+layout.svelte was not created

System info

  System:
    OS: Linux 6.12 cpe:/o:nixos:nixos:25.05 25.05 (Warbler)
    CPU: (12) x64 Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz
    Memory: 3.18 GB / 15.56 GB
    Container: Yes
    Shell: 5.2.37 - /run/current-system/sw/bin/bash
  Binaries:
    Node: 24.11.0 - /nix/store/4grir7s1ls3cbqp8dl91r1w8yz34zw6x-nodejs-24.11.0/bin/node
    npm: 11.6.1 - /nix/store/4grir7s1ls3cbqp8dl91r1w8yz34zw6x-nodejs-24.11.0/bin/npm
    pnpm: 10.22.0 - /nix/store/lalvgz06zbpb1hw43nr7lj8rb05k3yka-pnpm-10.22.0/bin/pnpm
  Browsers:
    Brave Browser: 141.1.83.118

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions